Difference between revisions of "DisablePlayerControls"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>DSoS
imported>HawkFest
Line 3: Line 3:
==Syntax==
==Syntax==


  DisablePlayerControls ''MovementFlag (0/1) (optional), FightingFlag (0/1) (optional), POVFlag (0/1) (optional), LookingFlag (0/1) (optional), SneakingFlag (0/1) (optional), MenuFlag (0/1) (optional), ActivateFlag (0/1) (optional)''
  DisablePlayerControls([''MovementFlag (0/1)][, FightingFlag (0/1)][, POVFlag (0/1)][, LookingFlag (0/1)][, SneakingFlag (0/1)][, MenuFlag (0/1)][, ActivateFlag (0/1)]'')


Default (no parameters) is equivalent to:
Default (no parameters) is equivalent to:
   
   
  DisablePlayerControls 1 1 0 0 0 1 1  ; POV, Looking, and Sneaking are still enabled
  DisablePlayerControls(1, 1, 0, 0, 0, 1, 1) ; POV, Looking, and Sneaking are still enabled


;1 = Disabled - Will Disable the Flag.  
;1 = Disabled - Will Disable the Flag.  

Revision as of 15:00, 18 January 2013

DisablePlayerControls disables some or all of the player's controls.

Syntax

DisablePlayerControls([MovementFlag (0/1)][, FightingFlag (0/1)][, POVFlag (0/1)][, LookingFlag (0/1)][, SneakingFlag (0/1)][, MenuFlag (0/1)][, ActivateFlag (0/1)])

Default (no parameters) is equivalent to:

DisablePlayerControls(1, 1, 0, 0, 0, 1, 1)  ; POV, Looking, and Sneaking are still enabled
1 = Disabled - Will Disable the Flag.
0 = Enabled - Will keep the Flag enabled, so the player can use the Flag.

Flag Definitions

MovementFlag
Player movement is disabled. Activation of world objects is disabled. HUD is partially disabled: Action Points, Health, Crosshair.
FightingFlag
Player cannot bring up a weapon. If the player currently has a weapon out, the weapon will be holstered.
POVFlag
Player cannot go into 3rd person view. If currently in 3rd person, the view is forced into first person.
LookingFlag
Player looking is disabled -- the player's view is locked into its current position.
SneakingFlag
Player cannot go into sneak mode. If currently sneaking, forces you out of sneak mode.
MenuFlag
Player cannot use the four main menus.
ActivateFlag
Player cannot activate anything.

Examples

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.

Notes

See Also

EnablePlayerControls
GetPlayerControlsDisabled


Papyrus Version

DisablePlayerControls - Game