propName
propName
gets/sets the name of the property/material that the sensor looks for.
Type: string
Sample
Code
################## Get propName
# get the controller
controller = GameLogic.getCurrentController()
# get the ray sensor attached to the controller named
GuardDuty
ray = controller.sensors["GuardDuty"]
# get property name
prop = ray.propName
################## Set propName
# get the controller
controller = GameLogic.getCurrentController()
# get the ray sensor attached to the controller
named
GuardDuty
ray = controller.sensors["GuardDuty"]
# set name of material sensor looks for
ray.propName = "Blue_Team"
|