Skip to content
FMFallout Multiplayer Scripting APIScripting guides and API
Global objectClient APIGenerated

Controls

const Controls: 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.

isDisabledByScripts(control): boolean

Whether a script holds the control off, whatever the game’s own layers do.

"movement" | "looking" | "fighting" | "sneaking" | "menu" | "jumping" | "journal" | "activate" | "fastTravel" | "camSwitch" | "vats" | "favorites" | "zKey" | "running" | "sprinting"

Which control.

boolean

True when setEnabled turned it off.

isEnabled(control): boolean

Whether every layer, the game’s included, lets the control through.

"movement" | "looking" | "fighting" | "sneaking" | "menu" | "jumping" | "journal" | "activate" | "fastTravel" | "camSwitch" | "vats" | "favorites" | "zKey" | "running" | "sprinting"

Which control.

boolean

True when it is on.

reset(): void

Gives back everything scripts held off.

void

setEnabled(control, enabled): boolean

Turns one control off or back on. Everything comes back on disconnect.

"movement" | "looking" | "fighting" | "sneaking" | "menu" | "jumping" | "journal" | "activate" | "fastTravel" | "camSwitch" | "vats" | "favorites" | "zKey" | "running" | "sprinting"

Which control.

boolean

False holds it off.

boolean

False when the game had no free layer.