Sound Actuator Loop Bidirectional: cone_angle_outer

cone_angle_outer
  • gets/sets the angle of the outer cone.
  • Sound Actuator name: Cone Outer Angle

Type: 
  • float number

Range:

  • 0.00 to 360.00
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 the angle of the outer cone

# 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 the angle of the outer cone
angle = act.cone_angle_outer 
 
Sample Code


################  Set the angle of the outer cone

# 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 the angle of the outer cone to 360
act.cone_angle_outer = 360.00