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
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
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)