Difference between revisions of "GetPlayerControlsDisabled"
Jump to navigation
Jump to search
imported>Cipscis (Converted to function template, fixed function name in examples) |
imported>Odessa m (tidied) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|CSWikiPage = GetPlayerControlsDisabled | |CSWikiPage = GetPlayerControlsDisabled | ||
|origin = GECK1 | |origin = GECK1 | ||
|summary = [[GetPlayerControlsDisabled]] returns 1 if the specified player controls are currently disabled, and 0 otherwise. | |summary = [[GetPlayerControlsDisabled]] returns true (1) if any of the specified player controls are currently disabled, and false (0) otherwise. | ||
|returnType = bool | |||
|arguments = {{FunctionArgument | |arguments = {{FunctionArgument | ||
|Name = | |Name = Movement | ||
|Type = | |Type = bool | ||
|Optional = true | |Optional = true | ||
}}{{FunctionArgument | |||
|Name = | |Name = Pipboy | ||
|Type = | |Type = bool | ||
|Optional = true | |Optional = true | ||
}}{{FunctionArgument | |||
|Name = | |Name = Fighting | ||
|Type = | |Type = bool | ||
|Optional = true | |Optional = true | ||
}}{{FunctionArgument | |||
|Name = | |Name = POV | ||
|Type = | |Type = bool | ||
|Optional = true | |Optional = true | ||
}}{{FunctionArgument | |||
|Name = | |Name = Looking | ||
|Type = | |Type = bool | ||
|Optional = true | |Optional = true | ||
}}{{FunctionArgument | |||
|Name = | |Name = RolloverText | ||
|Type = | |Type = bool | ||
|Optional = true | |Optional = true | ||
}}{{FunctionArgument | |||
|Name = | |Name = Sneaking | ||
|Type = | |Type = bool | ||
|Optional = true | |Optional = true | ||
}} | |||
|example = | |example = | ||
GetPlayerControlsDisabled | GetPlayerControlsDisabled | ||
Line 50: | Line 51: | ||
<ul> | <ul> | ||
<li>Default (no parameters) is equivalent to: | <li>Default (no parameters) is equivalent to: | ||
<pre> | <pre>GetPlayerControlsDisabled 1 1 1 1 1 1 1 ; Return true if any controls are currently disabled.</pre> | ||
The function returns true if ANY of the specified controls are currently disabled (see examples). | The function returns true if ANY of the specified controls are currently disabled (see examples). | ||
</li> | </li> | ||
Line 58: | Line 59: | ||
*[[EnablePlayerControls]] | *[[EnablePlayerControls]] | ||
*[[DisablePlayerControls]] | *[[DisablePlayerControls]] | ||
*[[GetRestrained]] | |||
*[[GetTFC]] | |||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 11:48, 28 July 2014
< [[::Category:Functions|Category:Functions]]
Link to TES4 Construction Set Wiki: GetPlayerControlsDisabled.
A function included in the GECK version 1.1.0.36.
Description
GetPlayerControlsDisabled returns true (1) if any of the specified player controls are currently disabled, and false (0) otherwise.
Syntax
(bool) GetPlayerControlsDisabled Movement:bool Pipboy:bool Fighting:bool POV:bool Looking:bool RolloverText:bool Sneaking:bool
Example
GetPlayerControlsDisabled
Returns 1 if any of the player's controls are currently disabled.
GetPlayerControlsDisabled 0 1 0 0 0
Returns 1 if the player's Pip-Boy is currently disabled.
DisablePlayerControls 0 1 0 1 0 ; will disable pipboy and POV switch. GetPlayerControlsDisabled 0 1 0 0 0 ; returns 1 GetPlayerControlsDisabled 0 0 0 1 0 ; returns 1 GetPlayerControlsDisabled 0 1 0 1 0 ; returns 1 GetPlayerControlsDisabled 1 1 1 1 1 ; returns 1 GetPlayerControlsDisabled 0 0 0 0 0 ; returns 0 GetPlayerControlsDisabled 1 0 1 0 1 ; returns 0
Notes
- Default (no parameters) is equivalent to:
GetPlayerControlsDisabled 1 1 1 1 1 1 1 ; Return true if any controls are currently disabled.
The function returns true if ANY of the specified controls are currently disabled (see examples).