Sync

A fast entity based synchronous networking system

Reference

Functions

entMeta:GetSyncVar(varID, fallback)

View source »

Gets the Sync variable on an entity

Parameters

Returns

entMeta:SetSyncVar(varID, value[, instantSync=false])

View source »

Sets the Sync var on an entity

Parameters

entMeta:SyncRemove()

View source »

Removes all SyncVar's from an entity and update all players

entMeta:SyncRemoveVar(varID)

View source »

Removes a specific SyncVar from an entity and update all players

Parameters

impulse.Sync.DoType(type, value)

View source »

Reads or writes a value based on the SyncType provided

Parameters

impulse.Sync.RegisterVar(type[, conditional=false])

View source »

Registers a new Sync variable for usage. Must be called in the shared realm

Parameters

See Also

meta:SetLocalSyncVar(varID, value)

View source »

Sets the Sync var on an entity but only updates the player who it is being set on

Parameters

Tables

SyncDefaults

View source »

Default Sync variables

Fields

SyncTypes

View source »

Types of Sync variable

Fields