DisablePlayerControlsAlt

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender version 6.3.2.

Description

Disables some or all of the player's controls.

Unlike DisablePlayerControls, the changes are NOT savebaked, and are cleared whenever a save is loaded.

  • Consider using GetGameLoaded to re-apply changes, or something similar.

Furthermore, disabling is stored on a per-mod basis, so if two mods disable a control at some point, it will be disabled until both of them re-enable it, or until the save is reloaded.

  • This makes it easier to keep mods that disable controls compatible with each other.

Default (no parameters) is equivalent to:

DisablePlayerControlsAlt 1 1 1 1 0 0 0  ; Movement, Pipboy, Fighting and POV controls are disabled

Syntax

[help]
DisablePlayerControlsAlt MovementFlag (0/1), PipboyFlag (0/1), FightingFlag (0/1), POVFlag (0/1), LookingFlag (0/1), RolloverTextFlag (0/1), SneakingFlag (0/1)

Example

DisablePlayerControlsAlt

Player's Movement, Pipboy, Fighting and POV controls are disabled, but everything else is unaffected.

DisablePlayerControlsAlt 0 0 1 0 0

Player's ability to equip or use a weapon is disabled; all other controls are unaffected.

Flag Definitions

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. 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.
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.
RolloverTextFlag 
No rollover text on world objects.
SneakingFlag 
Player cannot go into sneak mode. If currently sneaking, forces you out of sneak mode.
There are custom new flags, but they are exclusive to DisablePlayerControlsAltEx.

See Also