sensors
sensors
gets a list of the names of the sensors attached to the game object
Type: list [ sensor names ]
Sample Code
################# Get sensors
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# get sensor list
senList = obj.sensors
|