Skip to content

FreecamOptions

How fast players.freecam flies, in metres per second. Both speeds are 0.5-500. FREECAM_DEFAULT_SPEED (12) is the speed when none is given, and FREECAM_FAST_FACTOR (4) how many times faster the Shift speed is when fastSpeed is left out.

type FreecamOptions = Readonly<{ speed?: number; fastSpeed?: number }> & ViewListenOptions;
const FREECAM_DEFAULT_SPEED = 12;
const FREECAM_FAST_FACTOR = 4;
Field Type Description
speed number Optional. Normal flying speed. Default 12 m/s.
fastSpeed number Optional. Speed while Shift (Cross or A on a controller) is held. Default four times speed, at most 500.
listenAtView boolean Optional. true: the player hears nearby chat at the camera instead of where they started flying. See ViewListenOptions.