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

NoClip

const NoClip: object

Defined in: client/api.d.ts:530

The game’s fly camera, as the console’s tfc runs it: while enabled the local player’s controls fly the camera through walls instead of moving the player.

disable(options?): void

Leaves the fly camera for the camera the player had.

movePlayer: first place the player where the camera is, facing its yaw. False by default.

boolean

void

enable(options?): boolean

Enters the fly camera where the camera is now; it is left again once this resource stops. True once enabled; false while there is no player in a cell, or the camera is already held by something else.

freezeWorld: stop time while flying, as tfc 1 does. False by default.

boolean

boolean

getPosition(): { x: number; y: number; z: number; } | null

Where the fly camera is, in world units; null while disabled.

{ x: number; y: number; z: number; } | null

getRotation(): { pitch: number; yaw: number; } | null

The fly camera’s pitch and yaw, radians in [0, 2pi); yaw 0 faces +Y, clockwise. Null while disabled.

{ pitch: number; yaw: number; } | null

getSpeed(): object

The fly camera’s speeds: movement per frame of full input, look, and the multiplier while running.

object

look: number

move: number

run: number

isEnabled(): boolean

Whether NoClip holds the fly camera. Leaving it with the console’s tfc counts as disabling it.

boolean

setPosition(x, y, z): boolean

Moves the fly camera; input keeps flying it from there. False while disabled.

number

World units.

number

World units.

number

World units.

boolean

setRotation(pitch, yaw): boolean

Turns the fly camera; there is no roll. False while disabled.

number

Radians.

number

Radians; 0 faces +Y, clockwise.

boolean

setSpeed(speeds): void

Sets the fly camera’s speeds, as the console’s sucsm does for move and look. The game’s own come back on disconnect.

The speeds to change, each above 0; the others are kept.

number

number

number

void