SyncedVector3 - maceeikodev/WreckMP_Ref GitHub Wiki

Definition

public class SyncedVector3 : WreckAPI.SyncedProperty<Vector3>

Creates a Vector3 variable, whose value is automatically synced across clients.

Fields

public float tolerance; - When new value is set, if the magnitude difference is bigger than this value the event is sent.

Constructor

public SyncedVector3(string uid, bool registerTimer = false);

Create an instance.

uid - The unique name of the game event used to send updates.

registerTimer - Set to true if you're going to use UpdateCooldown, otherwise keep on false to improve performance. Only use UpdateCooldown if you change the value often.

⚠️ **GitHub.com Fallback** ⚠️