Difference between revisions of "DisablePlayerControls"
m
TESCK wiki link is worthless for this command
imported>Cipscis |
imported>Prideslayer m (TESCK wiki link is worthless for this command) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'''DisablePlayerControls''' disables some or all of the player's controls. | {{Function | ||
|origin = GECK1 | |||
|summary = '''DisablePlayerControls''' disables some or all of the player's controls. | |||
Default (no parameters) is equivalent to: | Default (no parameters) is equivalent to: | ||
DisablePlayerControls 1 1 1 1 0 0 0 ; Looking, Rollover Text, and Sneaking are still enabled | DisablePlayerControls 1 1 1 1 0 0 0 ; Looking, Rollover Text, and Sneaking are still enabled | ||
|name = DisablePlayerControls | |||
|returnType = void | |||
|arguments = | |||
{{FunctionArgument | |||
|Name = MovementFlag (0/1) (optional), | |||
|Optional = y | |||
}}{{FunctionArgument | |||
|Name = PipboyFlag (0/1) (optional), | |||
|Optional = y | |||
}}{{FunctionArgument | |||
|Name = FightingFlag (0/1) (optional), | |||
|Optional = y | |||
}}{{FunctionArgument | |||
|Name = POVFlag (0/1) (optional), | |||
|Optional = y | |||
}}{{FunctionArgument | |||
|Name = LookingFlag (0/1) (optional), | |||
|Optional = y | |||
}}{{FunctionArgument | |||
|Name = RolloverTextFlag (0/1) (optional), | |||
|Optional = y | |||
}}{{FunctionArgument | |||
|Name = SneakingFlag (0/1) (optional) | |||
|Optional = y | |||
}} | |||
|example = DisablePlayerControls | |||
Player's controls are disabled, except for Looking. | |||
DisablePlayerControls 0 0 1 0 0 | |||
Player's ability to equip or use a weapon is disabled; all other controls are unaffected. | |||
}} | |||
===Flag Definitions=== | ===Flag Definitions=== | ||
Line 15: | Line 42: | ||
; MovementFlag : Player movement is disabled. Activation of world objects is disabled. HUD is partially disabled: Action Points, Health, Crosshair. | ; MovementFlag : Player movement is disabled. Activation of world objects is disabled. HUD is partially disabled: Action Points, Health, Crosshair. | ||
; PipBoyFlag : Player cannot bring up the pip-boy interface | ; PipBoyFlag : Player cannot bring up the pip-boy interface. The "Wait" menu will also be disabled. | ||
; FightingFlag : Player cannot bring up a weapon. If the player currently has a weapon out, the weapon will be holstered. | ; FightingFlag : Player cannot bring up a weapon. If the player currently has a weapon out, the weapon will be holstered. | ||
Line 27: | Line 54: | ||
; SneakingFlag : Player cannot go into sneak mode. If currently sneaking, forces you out of sneak mode. | ; SneakingFlag : Player cannot go into sneak mode. If currently sneaking, forces you out of sneak mode. | ||
== | ==Notes== | ||
*This function replaces ForcePlayerTo1stPerson. | |||
==See Also== | |||
*[[EnablePlayerControls]] | |||
*[[GetPlayerControlsDisabled]] | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | |||
[[Category:Player Functions]] | [[Category:Player Functions]] | ||
[[Category:Player Functions (GECK 1.1)]] | |||
[[Category:Godsend Functions]] | [[Category:Godsend Functions]] | ||
[[Category:Godsend Functions (GECK 1.1)]] |