useRecursion
useRecursion
gets/sets whether or not visibility/occlusion settings should be used
for object's children
Type: bool
True or 1 = recursion
False or 0 = no recursion
Sample
Code
############### Get useRecursion
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named
Invisible
act = controller.actuators["Invisible"]
#get recursion
recur = act.useRecursion
############### Set useRecursion
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named
Invisible
act = controller.actuators["Invisible"]
# use recursion
act.useRecursion = True
|