EnablePlayerControls - InputEnableLayer

From Creation Kit
Jump to: navigation, search

Member of: InputEnableLayer Script

Selectively enables the player's controls on this layer.

Syntax

Function EnablePlayerControls(bool abMovement = true, bool abFighting = true, bool abCamSwitch = true, \
  bool abLooking = true, bool abSneaking = true, bool abMenu = true, bool abActivate = true, \
  bool abJournalTabs = true, bool abVATS = true, bool abFavorites = true, bool abRunning = true) native

Parameters

  • abMovement: Enable the player's movement controls.
    • Default: True
  • abFighting: Enable the player's combat controls.
    • Default: True
  • abCamSwitch: Enable the ability to switch to 3rd-person.
    • Default: True
  • abLooking: Enable the player's look controls.
    • Default: True
  • abSneaking: Enable the player's sneak controls.
    • Default: True
  • abMenu: Enables menu controls (Journal, Inventory, Pause, etc.).
    • Default: True
  • abActivate: Enables activation.
    • Default: True
  • abJournalTabs: Enables all Journal tabs.
    • Default: True
  • abVATS: Enables VATS.
    • Default: True
  • abFavorites: Enables Favorites.
    • Default: True
  • abRunning: Enable the player's running controls.
    • Default: True

Return Value

None.

Examples

; Enable all controls on this layer
myLayer.EnablePlayerControls()


; Enable all except camera switching
myLayer.EnablePlayerControls(abCamSwitch = false)

See Also