PlayerSyncer

Variables

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()
This will return a list with all player syncers


GetLocalPlayerSyncer

 function PlayerSyncer.GetLocalPlayerSyncer()

PlayerSyncer.GetLocalPlayerSyncer

Returns the local player syncer

Example

PlayerSyncer.GetLocalPlayerSyncer()
This will return the local player syncer


GetLocalID

 function PlayerSyncer.GetLocalID()

PlayerSyncer.GetLocalID

Returns the local player syncer ID

Example

PlayerSyncer.GetLocalID()
This will return the local player syncer id


GetWithID

 function PlayerSyncer.GetWithID()

PlayerSyncer.GetWithID

Returns the player syncer with the desired ID

Example

PlayerSyncer.GetWithID(1)
This will return the player syncer with the id 1

Comments