Difference between revisions of "EnablePlayerControls - Game"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Terra Nova2 (Added note.) |
||
Line 48: | Line 48: | ||
</source> | </source> | ||
== Notes == | |||
* If this is called immediately on quest start as the result of an [[OnInit]] firing, this function will not fire. | |||
== See Also == | == See Also == | ||
*[[Game Script]] | *[[Game Script]] | ||
*[[DisablePlayerControls - Game]] | *[[DisablePlayerControls - Game]] |
Latest revision as of 10:09, 29 March 2014
Member of: Game Script
Selectively enables the player's controls.
Syntax[edit | edit source]
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, \
int aiDisablePOVType = 0) native global
Parameters[edit | edit source]
- 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
- aiDisablePOVType: What POV system is enabling POV
- 0 = Script
- 1 = Werewolf
- Default: 0
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Enable all controls
Game.EnablePlayerControls()
; Enable all except camera switching
Game.EnablePlayerControls(abCamSwitch = false)
Notes[edit | edit source]
- If this is called immediately on quest start as the result of an OnInit firing, this function will not fire.