Difference between revisions of "EnablePlayerControls"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Scornett-Bot
m (Script running global find and replace: = for '''=)
 
imported>HawkFest
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
==Syntax==
==Syntax==


  EnablePlayerControls ''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)''
  EnablePlayerControls([''MovementFlag][, FightingFlag][, POVFlag][, LookingFlag][, SneakingFlag][, MenuFlag][, ActivateFlag]'')
 
Where each Flag is a boolean value (either 0 or False, either 1 or True). Default (no parameters) is equivalent to:
Default (no parameters) is equivalent to:
   
   
  EnablePlayerControls 1 1 1 1 1 1 1
  EnablePlayerControls(1, 1, 1, 1, 1, 1, 1)


==Examples==
==Examples==


  EnablePlayerControls
  EnablePlayerControls()
Player's controls are completely enabled
Player's controls are completely enabled


  EnablePlayerControls 1 1 0
  EnablePlayerControls(1, 1, 0)
Turns back on ability to move and fighting, but not to POV, Looking... (assuming they were currently disabled)
Turns back on ability to move and fighting, but not to POV, Looking... (assuming they were currently disabled)



Latest revision as of 15:05, 18 January 2013

Description[edit | edit source]

EnablePlayerControls enables the player's controls after use of DisablePlayerControls.

Syntax[edit | edit source]

EnablePlayerControls([MovementFlag][, FightingFlag][, POVFlag][, LookingFlag][, SneakingFlag][, MenuFlag][, ActivateFlag])

Where each Flag is a boolean value (either 0 or False, either 1 or True). Default (no parameters) is equivalent to:

EnablePlayerControls(1, 1, 1, 1, 1, 1, 1)

Examples[edit | edit source]

EnablePlayerControls()

Player's controls are completely enabled

EnablePlayerControls(1, 1, 0)

Turns back on ability to move and fighting, but not to POV, Looking... (assuming they were currently disabled)

Notes[edit | edit source]


See Also[edit | edit source]

DisablePlayerControls
GetPlayerControlsDisabled


Papyrus Version[edit | edit source]

EnablePlayerControls - Game