GetPlayerControlsDisabled

From GECK
(Redirected from GetControlsDisabled)
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

GetPlayerControlsDisabled returns true (1) if any of the specified player controls are currently disabled, and false (0) otherwise.

Syntax

[help]
(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).

See Also