angle
angle
Note:
Doesn't work.
gets/sets the angle of the radar cone
Type: float
Range: 0 to 360 degrees
Sample
Code
###############
Get angle
# get the controller.
controller = GameLogic.getCurrentController()
# get the Radar sensor attached to the controller named
GuardDuty
radar = controller.sensors["GuardDuty"]
# get angle the radar is checking
ang = radar.angle
###############
Set distance
# get the controller.
controller = GameLogic.getCurrentController()
# get the Radar sensor attached to the controller named
GuardDuty
radar = controller.sensors["GuardDuty"]
# set angle the radar is checking
radar.angle = 90.0
|