mask
mask
gets/sets the State Mask Group.
Type: integer
0 = none
1 = State Mask group
1 active
2 = State Mask group 2 active
3 = State Mask groups 2 and 1 active
4 = State Mask group 3 active
5 = State Mask groups 3 and 1 active
6 = State Mask groups 3 and 2 active
7 = State Mask groups 3 and 2 and 1 active
8 = State Mask group 4 active
etc
16 = layer 5
etc
32 = layer 6
etc
Sample
Code
################ Get mask
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# get mask group
maskGroup = act.mask
################ Set mask
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# State Mask group 2 active
act.mask = 2
|