EnablePlayerControlsAlt
A function added by the New Vegas Script Extender version 6.3.2.
Contents
Description
Enables the player's controls after use of DisablePlayerControlsAlt / DisablePlayerControlsAltEx.
Disabling and enabling 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 will NOT override the controls disabled with the vanilla DisablePlayerControls.
Default (no parameters) is equivalent to having *all* the Flag arguments at 1, meaning it will re-enable all controls.
Syntax
EnablePlayerControlsAlt MovementFlag (0/1), PipboyFlag (0/1), FightingFlag (0/1), POVFlag (0/1), LookingFlag (0/1), RolloverTextFlag (0/1), SneakingFlag (0/1)
Example
EnablePlayerControlsAlt
Player's controls are completely enabled, at least from the calling mod's point of view. If other mods are still disabling those controls, then they'll stay disabled until those other mods re-enable the control too.
On top of this, vanilla DisablePlayerControls can also leave controls disabled, and the only way to turn it back on at that point is to use vanilla EnablePlayerControls. However, it shouldn't typically be necessary to go override whatever vanilla scripts are currently doing, so this can safely be ignored.
EnablePlayerControlsAlt 1 1 0
Turns back on ability to move and use the pip-boy, but not to fight (assuming fighting was currently disabled). Also re-enables all other flags.
Notes
- See DisablePlayerControlsAlt for flag definitions.
See Also
- EnablePlayerControlsAltEx - Same as this but takes a single Bitmask argument instead.
- EnablePlayerControls
- DisablePlayerControls / DisablePlayerControlsAlt / DisablePlayerControlsAltEx
- GetPlayerControlsDisabled / GetPlayerControlsDisabledAlt / GetPlayerControlsDisabledAltEx
- DisableControl
- ToggleVanityWheel