Adding Global Objects
Learn how to add objects to the object streamer.

Summary

Object(s) inheritely are always global unless they are attached to an interior. In our case we'll just be generating some basic objects and explaining what is happening.

Video Guide

Adding a Global Object

Global Object(s) are defined as a type of object that everyone can see.
All object(s) must have a unique identifier or a uid just in case they need to be removed later.
1
ObjectController.append({ uid: `test-object-1`, model: 'prop_ld_int_safe_01', pos });
Copied!

Removing a Global Object

Global Object(s) can easily be removed if you know the uid of that object.
1
ObjectController.remove('test-object-1')
Copied!

Adding a Local Object to a Player

Local Object(s) are only for a single player to see. Remember that the uid is something you define to remove it later.
1
ObjectController.addToPlayer(player, { uid: `test-object-local-1`, model: 'prop_ld_int_safe_01', pos })
Copied!

Removing a Local Object from a Player

As long as you know the uid of the local object it can be removed.
1
ObjectController.removeFromPlayer(player, 'test-object-local-1');
Copied!
Last modified 3mo ago