Background for Fallout 4
Member of the InputEnableLayer script
voidfunctionEnablePlayerControls(boolabMovement=true, boolabFighting=true, boolabCamSwitch=true, boolabLooking=true, boolabSneaking=true, boolabMenu=true, boolabActivate=true, boolabJournalTabs=true, boolabVATS=true, boolabFavorites=true, boolabRunning=true)Native

Description

Wiki Description

Selectively enables the player's controls on this layer.

Documentation Comment

Enables the user's controls


Parameters

  1. boolabMovement=true

    CK Wiki Description

    Enable the player's movement controls.

    • Default:True
  2. boolabFighting=true

    CK Wiki Description

    Enable the player's combat controls.

    • Default:True
  3. boolabCamSwitch=true

    CK Wiki Description

    Enable the ability to switch to 3rd-person.

    • Default:True
  4. boolabLooking=true

    CK Wiki Description

    Enable the player's look controls.

    • Default:True
  5. boolabSneaking=true

    CK Wiki Description

    Enable the player's sneak controls.

    • Default:True
  6. boolabMenu=true

    CK Wiki Description

    Enables menu controls (Journal, Inventory, Pause, etc.).

    • Default:True
  7. boolabActivate=true

    CK Wiki Description

    Enables activation.

    • Default:True
  8. boolabJournalTabs=true

    CK Wiki Description

    Enables all Journal tabs.

    • Default:True
  9. boolabVATS=true

    CK Wiki Description

    Enables VATS.

    • Default:True
  10. boolabFavorites=true

    CK Wiki Description

    Enables Favorites.

    • Default:True
  11. boolabRunning=true

    CK Wiki Description

    Enable the player's running controls.

    • Default:True

Examples

; Enable all controls on this layer
myLayer.EnablePlayerControls()
; Enable all except camera switching
myLayer.EnablePlayerControls(abCamSwitch = false)

Auto-Generated Example

bool myBool__abMovement
bool myBool__abFighting
bool myBool__abCamSwitch
bool myBool__abLooking
bool myBool__abSneaking
bool myBool__abMenu
bool myBool__abActivate
bool myBool__abJournalTabs
bool myBool__abVATS
bool myBool__abFavorites
bool myBool__abRunning

myInputEnableLayer__toCallFunctionOn.EnablePlayerControls(myBool__abMovement, myBool__abFighting, myBool__abCamSwitch, myBool__abLooking, myBool__abSneaking, myBool__abMenu, myBool__abActivate, myBool__abJournalTabs, myBool__abVATS, myBool__abFavorites, myBool__abRunning)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.