value
value
gets/sets the value (as a string) the actuator applies to the property.
Type: string
Sample
Code
################ Get value
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator named act attached to the controller
act = controller.actuators["act"]
# get value it applies to property as a string
prop = act.value
################ Set value
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator named act attached to the controller
act = controller.actuators["act"]
# set value (an integer) it applies to
property as a string
act.value = "12"
|