SetObjectStreamDistance

From Onset Developer Wiki
Revision as of 09:59, 17 April 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetObjectStreamDistance

Type: Function
Context: Server
Introduced: v1.0

Description

Set the specified object's stream distance. The distance can not be greater than the global stream distance. If you like to view objects from far away you can spawn them on client.

Syntax

SetObjectStreamDistance(object, distance)

Parameters

  • object
    The object identifier.
  • distance
    The stream distance. The distance can not be greater than the global stream distance.

Return Value

  • This function returns true on success.

Example

SetObjectStreamDistance(objectId, 10000)

See also