Difference between revisions of "GetPlayerControlsDisabled"
Jump to navigation
Jump to search
imported>Kkuhlmann |
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0))) |
||
Line 46: | Line 46: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.0)]] | |||
[[Category:Condition Functions]] | [[Category:Condition Functions]] | ||
[[Category:Condition Functions (GECK 1.0)]] | |||
[[Category:Player Functions]] | [[Category:Player Functions]] | ||
[[Category:Player Functions (GECK 1.0)]] |
Revision as of 11:53, 12 August 2009
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