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


Caveats


Parameters

boolabMovement=true

CK Wiki Description

Enable the player's movement controls.

  • Default:True

boolabFighting=true

CK Wiki Description

Enable the player's combat controls.

  • Default:True

boolabCamSwitch=true

CK Wiki Description

Enable the ability to switch to 3rd-person.

  • Default:True

boolabLooking=true

CK Wiki Description

Enable the player's look controls.

  • Default:True

boolabSneaking=true

CK Wiki Description

Enable the player's sneak controls.

  • Default:True

boolabMenu=true

CK Wiki Description

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

  • Default:True

boolabActivate=true

CK Wiki Description

Enables activation.

  • Default:True

boolabJournalTabs=true

CK Wiki Description

Enables all Journal tabs.

  • Default:True

boolabVATS=true

CK Wiki Description

Enables VATS.

  • Default:True

boolabFavorites=true

CK Wiki Description

Enables Favorites.

  • Default:True

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.