Module KX_ActuatorSensor :: Class KX_ActuatorSensor
[hide private]
[frames] | no frames]

Class KX_ActuatorSensor

source code

SCA_ILogicBrick.SCA_ILogicBrick --+    
                                  |    
            SCA_ISensor.SCA_ISensor --+
                                      |
                                     KX_ActuatorSensor

Actuator sensor detect change in actuator state of the parent object. It generates a positive pulse if the corresponding actuator is activated and a negative pulse if the actuator is deactivated.

Instance Methods [hide private]
string
getActuator()
Return the Actuator with which the sensor operates.
source code
 
setActuator(name)
Sets the Actuator with which to operate.
source code

Inherited from SCA_ISensor.SCA_ISensor: getFrequency, getInvert, getLevel, getUseNegPulseMode, getUsePosPulseMode, isPositive, isTriggered, reset, setFrequency, setInvert, setLevel, setUseNegPulseMode, setUsePosPulseMode

Inherited from SCA_ILogicBrick.SCA_ILogicBrick: getExecutePriority, getOwner, setExecutePriority

Method Details [hide private]

setActuator(name)

source code 

Sets the Actuator with which to operate. If there is no Actuator of this name, the function has no effect.

Parameters:
  • name (string) - actuator name