PlayerSyncer
Variables
transform
PlayerSyncer.transform
Variable holding the player syncer's Transform reference. Keep in mind this is not the local player's transform. The Player Syncer is a separate gameobject with a separate transform that follows the player around.
Example
PlayerSyncer.transform
gameObject
PlayerSyncer.gameObject
Variable holding the player syncer's GameObject reference. Keep in mind this is not the local player's gameObject. The Player Syncer is a separate gameobject with a separate transform that follows the player around.
Example
PlayerSyncer.gameObject
ID
PlayerSyncer.ID
Gets the ID of this player syncer.
Example
myID = playerSyncer.ID
name
PlayerSyncer.name
Gets the name of this player syncer.
Example
PlayerName = playerSyncer.name
health
PlayerSyncer.health
Variable holding the player syncer's health in an Int data type. Keep in mind that changing this variable on remote players will have no effect.
Example
PlayerSyncer.health
maxHealth
PlayerSyncer.maxHealth
Variable holding the player syncer's maxHealth in an Int data type. Keep in mind that changing this variable on remote players will have no effect.
Example
PlayerSyncer.maxHealth
Functions
GetAll
function PlayerSyncer.GetAll()
PlayerSyncer.GetAll
Returns a list with all player syncers
Example
PlayerSyncer.GetAll()
GetLocalPlayerSyncer
function PlayerSyncer.GetLocalPlayerSyncer()
PlayerSyncer.GetLocalPlayerSyncer
Returns the local player syncer
Example
PlayerSyncer.GetLocalPlayerSyncer()
GetLocalID
function PlayerSyncer.GetLocalID()
PlayerSyncer.GetLocalID
Returns the local player syncer ID
Example
PlayerSyncer.GetLocalID()
GetHotbarInventory
function PlayerSyncer.GetHotbarInventory()
PlayerSyncer.GetHotbarInventory
Returns the local player hotbar inventory
GetPlayerInventory
function PlayerSyncer.GetPlayerInventory()
PlayerSyncer.GetPlayerInventory
Returns the local player inventory
GetWithID
function PlayerSyncer.GetWithID()
PlayerSyncer.GetWithID
Returns the player syncer with the desired ID
Example
PlayerSyncer.GetWithID(1)