Background for Skyrim SE
Member of the Game script
voidfunctionEnablePlayerControls(boolabMovement=true, boolabFighting=true, boolabCamSwitch=true, boolabLooking=true, boolabSneaking=true, boolabMenu=true, boolabActivate=true, boolabJournalTabs=true, intaiDisablePOVType=0)NativeGlobal

Description

Wiki Description

Selectively enables the player's controls.

Documentation Comment

Enables the user's controls


Caveats

CK Wiki - Notes

  • If this is called immediately on quest start as the result of an OnInit firing, this function will not fire.

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. intaiDisablePOVType=0

    CK Wiki Description

    What POV system is enabling POV

    • 0 = Script
    • 1 = Werewolf
    • Default:0

Examples

; Enable all controls
Game.EnablePlayerControls()
; Enable all except camera switching
Game.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
int myInt__aiDisablePOVType

Game.EnablePlayerControls(myBool__abMovement, myBool__abFighting, myBool__abCamSwitch, myBool__abLooking, myBool__abSneaking, myBool__abMenu, myBool__abActivate, myBool__abJournalTabs, myInt__aiDisablePOVType)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.