base class — bpy_struct
subclasses — PropertySensor, DelaySensor, KeyboardSensor, MouseSensor, NearSensor, RadarSensor, MessageSensor, JoystickSensor, CollisionSensor, ArmatureSensor, RandomSensor, ActuatorSensor, AlwaysSensor, RaySensor
Game engine logic brick to detect events
Set active state of the sensor
Type: | boolean, default False |
---|
The list containing the controllers connected to the sensor
Type: | bpy_prop_collection of Controller, (readonly) |
---|
Delay between repeated pulses(in logic tics, 0=no delay)
Type: | int in [0, 10000], default 0 |
---|
Invert the level(output) of this sensor
Type: | boolean, default False |
---|
Sensor name
Type: | string, default “”, (never None) |
---|
Display when not linked to a visible states controller
Type: | boolean, default False |
---|
Set sensor expanded in the user interface
Type: | boolean, default False |
---|
Type: | enum in [‘ACTUATOR’, ‘ALWAYS’, ‘ARMATURE’, ‘COLLISION’, ‘DELAY’, ‘JOYSTICK’, ‘KEYBOARD’, ‘MESSAGE’, ‘MOUSE’, ‘NEAR’, ‘PROPERTY’, ‘RADAR’, ‘RANDOM’, ‘RAY’], default ‘ALWAYS’ |
---|
Level detector, trigger controllers of new states (only applicable upon logic state transition)
Type: | boolean, default False |
---|
Activate FALSE level triggering (pulse mode)
Type: | boolean, default False |
---|
Activate TRUE level triggering (pulse mode)
Type: | boolean, default False |
---|
Trigger controllers only for an instant, even while the sensor remains true
Type: | boolean, default False |
---|
Link the sensor to a controller
Parameters: | controller (Controller) – Controller to link to |
---|
Unlink the sensor from a controller
Parameters: | controller (Controller) – Controller to unlink from |
---|
Inherited Properties
Inherited Functions
References