2 # Documentation for KX_ActuatorSensor
3 from SCA_IActuator import *
4 from SCA_ISensor import *
6 class KX_ActuatorSensor(SCA_ISensor):
8 Actuator sensor detect change in actuator state of the parent object.
9 It generates a positive pulse if the corresponding actuator is activated
10 and a negative pulse if the actuator is deactivated.
14 @ivar actuator: the name of the actuator that the sensor is monitoring.
15 @type actuator: string
19 DEPRECATED: use the actuator property
20 Return the Actuator with which the sensor operates.
24 def setActuator(name):
26 DEPRECATED: use the actuator property
27 Sets the Actuator with which to operate. If there is no Actuator
28 of this name, the function has no effect.
30 @param name: actuator name