Controls
constControls:object
Defined in: client/api.d.ts:748
The local player’s controls, on a layer of the game’s own input locks: a control the game itself holds off stays off.
Type Declaration
Section titled “Type Declaration”isDisabledByScripts()
Section titled “isDisabledByScripts()”isDisabledByScripts(
control):boolean
Whether a script holds the control off, whatever the game’s own layers do.
Parameters
Section titled “Parameters”control
Section titled “control”"movement" | "looking" | "fighting" | "sneaking" | "menu" | "jumping" | "journal" | "activate" | "fastTravel" | "camSwitch" | "vats" | "favorites" | "zKey" | "running" | "sprinting"
Which control.
Returns
Section titled “Returns”boolean
True when setEnabled turned it off.
isEnabled()
Section titled “isEnabled()”isEnabled(
control):boolean
Whether every layer, the game’s included, lets the control through.
Parameters
Section titled “Parameters”control
Section titled “control”"movement" | "looking" | "fighting" | "sneaking" | "menu" | "jumping" | "journal" | "activate" | "fastTravel" | "camSwitch" | "vats" | "favorites" | "zKey" | "running" | "sprinting"
Which control.
Returns
Section titled “Returns”boolean
True when it is on.
reset()
Section titled “reset()”reset():
void
Gives back everything scripts held off.
Returns
Section titled “Returns”void
setEnabled()
Section titled “setEnabled()”setEnabled(
control,enabled):boolean
Turns one control off or back on. Everything comes back on disconnect.
Parameters
Section titled “Parameters”control
Section titled “control”"movement" | "looking" | "fighting" | "sneaking" | "menu" | "jumping" | "journal" | "activate" | "fastTravel" | "camSwitch" | "vats" | "favorites" | "zKey" | "running" | "sprinting"
Which control.
enabled
Section titled “enabled”boolean
False holds it off.
Returns
Section titled “Returns”boolean
False when the game had no free layer.