Editing
DisablePlayerControls
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''DisablePlayerControls''' disables some or all of the player's controls. ==Syntax== DisablePlayerControls([''MovementFlag][, FightingFlag][, POVFlag][, LookingFlag][, SneakingFlag][, MenuFlag][, ActivateFlag]'') Where each Flag is a boolean value (either 0 or False, either 1 or True). Default (empty parenthesis) 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]]<br> [[GetPlayerControlsDisabled]] <!-- ==Reference== None provided. <!-- [[AddItemHealthPercent_Reference|List of functions that use AddItemHealthPercent]] (wiki) --> ==Papyrus Version== [[DisablePlayerControls - Game]] [[Category:Console Commands]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values