Difference between revisions of "DisablePlayerControls - InputEnableLayer"
Jump to navigation
Jump to search
imported>Plplecuyer |
imported>Docclox m (Added a note on using this function.) |
||
Line 50: | Line 50: | ||
myLayer.DisablePlayerControls(false, false, true, false, false, false, false, false, false, false, false) | myLayer.DisablePlayerControls(false, false, true, false, false, false, false, false, false, false, false) | ||
</source> | </source> | ||
== Notes == | |||
*Calling DisablePlayerControls with the False flag set for individual parameters will not re-enable controls that are already disabled. Use EnablePlayerControls instead. | |||
== See Also == | == See Also == |
Latest revision as of 22:11, 10 July 2016
Member of: InputEnableLayer Script
Selectively disables the player's controls on this layer.
Syntax[edit | edit source]
Function DisablePlayerControls(bool abMovement = true, bool abFighting = true, bool abCamSwitch = false, \
bool abLooking = false, bool abSneaking = false, bool abMenu = true, bool abActivate = true, \
bool abJournalTabs = false, bool abVATS = true, bool abFavorites = true, bool abRunning = false) native
Parameters[edit | edit source]
- abMovement: Disable the player's movement controls.
- Default: True
- abFighting: Disable the player's combat controls.
- Default: True
- abCamSwitch: Disable the ability to switch point of view.
- Default: False
- abLooking: Disable the player's look controls.
- Default: False
- abSneaking: Disable the player's sneak controls.
- Default: False
- abMenu: Disables menu controls (Journal, Inventory, Pause, etc.).
- Default: True
- abActivate: Disables ability for player to activate objects.
- Default: True
- abJournalTabs: Disables all Journal tabs except System.
- Default: False
- abVATS: Disables ability for player to use VATS.
- Default: True
- abFavorites: Disables ability for player to use the favorites menu.
- Default: True
- abRunning: Disables ability for player to run.
- Default: False
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Disable movement and combat
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.DisablePlayerControls()
; Disable just camera switching
myLayer.DisablePlayerControls(false, false, true, false, false, false, false, false, false, false, false)
Notes[edit | edit source]
- Calling DisablePlayerControls with the False flag set for individual parameters will not re-enable controls that are already disabled. Use EnablePlayerControls instead.
See Also[edit | edit source]
- InputEnableLayer Script
- EnablePlayerControls - InputEnableLayer
- IsActivateEnabled - InputEnableLayer
- IsCamSwitchEnabled - InputEnableLayer
- IsFightingEnabled - InputEnableLayer
- IsJournalEnabled - InputEnableLayer
- IsSneakingEnabled - InputEnableLayer
- IsLookingEnabled - InputEnableLayer
- IsMovementEnabled - InputEnableLayer
- IsRunningEnabled - InputEnableLayer
- IsSneakingEnabled - InputEnableLayer
- IsVATSEnabled - InputEnableLayer