
is3D
- gets/sets if 3D Sound is being used.
- Sound Actuator name: 3D Sound checkbox
- Boolean
Values:
- 1= True = 3D sound
- 0 = False = no 3D sound
Loop Bidirectional:
- Plays the sound file from start to finish. Then finish to start. Over and over.
- Positive Pulse: Starts playing the sound file from the beginning.
- Negative pulse: Keeps playing the sound file until it reaches the end, then stops playing.

Sample Code

################ get if 3D Sound is enabled
# import bge module
import bge
# get the controller
cont = bge.logic.getCurrentController()
# get the actuator attached to the controller
# my actuator is named Song
act = cont.actuators["Song"]
# get if 3D Sound is enabled
3D_status = act.is3D
Sample Code

################ set if 3D Sound is enabled
# import bge module
import bge
# get the controller
cont = bge.logic.getCurrentController()
# get the actuator attached to the controller
# my actuator is named Song
act = cont.actuators["Song"]
# set 3D Sound to True
act.is3D = True