Skip to main content

setStreamerDistance

Sets the streamer distance for all players.

PERSISTENT METHOD

This method is persistent. It will not reset when a server restarts.

Syntax

engine.players.setStreamerDistance(distance);

Parameters

NameTypeDescription
distancenumberThe max distance when players stream in. Maximum value is 1024.

Returns

  • Promise<void> - A promise that resolves when the streamer distance has been set.

Example

engine.players.setStreamerDistance(1024);

Available on: Client Server