max
max
gets/sets the maximum distance to stay from the target.
Type: float
Sample
Code
################## Get max
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
actCam = controller.actuators["act"]
# get max camera distance
maxDist = actCam.max
################## Set max
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
actCam = controller.actuators["act"]
# set max camera distance
actCam.max = 10.0
|