GetPlayerControlsDisabled
Revision as of 12:32, 15 August 2009 by imported>Geckbot (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
Description
GetControlsDisabled returns true if the specified player controls are currently disabled.
Syntax
GetControlsDisabled MovementFlag (0/1) (optional), PipboyFlag (0/1) (optional), FightingFlag (0/1) (optional), POVFlag (0/1) (optional), LookingFlag (0/1) (optional), RolloverTextFlag (0/1) (optional), SneakingFlag (0/1) (optional)
Default (no parameters) is equivalent to:
GetControlsDisabled 1 1 1 1 1 1 1 ; Return true if any controls are currently disabled.
The function returns true if ANY of the specified controls are currently disabled (see examples).
Examples
GetControlsDisabled
Returns true if any of the player's controls are currently disabled.
GetControlsDisabled 0 1 0 0 0
Returns true if the player's Pip-Boy is currently disabled.
DisablePlayerControls 0 1 0 1 0 ; will disable pipboy and POV switch. GetControlsDisabled 0 1 0 0 0 ; returns true GetControlsDisabled 0 0 0 1 0 ; returns true GetControlsDisabled 0 1 0 1 0 ; returns true GetControlsDisabled 1 1 1 1 1 ; returns true GetControlsDisabled 0 0 0 0 0 ; returns false GetControlsDisabled 1 0 1 0 1 ; returns false