Player

Variables

transform

Player.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
Player.transform

gameObject

Player.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
Player.gameObject

transform

Player.transform

Variable holding the player's Transform reference

Example
Player.transform

gameObject

Player.gameObject

Variable holding the player's GameObject reference

Example
Player.gameObject

saveSlot

Player.saveSlot

Variable holding the player's current character save slot.

Example
Player.saveSlot

energy

Player.energy

Variable holding the player's energy in an Int data type. Energy is used for planting, collecting flowers and etc.

Example
Player.energy

maxEnergy

Player.maxEnergy

Variable holding the player's max Energy in an Int data type

Example
Player.maxEnergy

health

Player.health

Variable holding the player's health in an Int data type

Example
Player.health

maxHealth

Player.maxHealth

Variable holding the player's max Health in an Int data type

Example
Player.maxHealth

stamina

Player.stamina

Variable holding the player's stamina in a float data type. Stamina is used for swimming.

Example
Player.stamina

maxStamina

Player.maxStamina

Variable holding the player's max Stamina in an Int data type

Example
Player.maxStamina

currency

Player.currency

Variable holding the player's currency in an Int data type.

Example
Player.currency

Functions

GetLocalPlayerSyncer

 function Player.GetLocalPlayerSyncer()

Player.GetLocalPlayerSyncer

Returns the local Player Syncer.

Example
LocalSyncer = Player.GetLocalPlayerSyncer()

GetAllPlayerSyncers

 function Player.GetAllPlayerSyncers()

Player.GetAllPlayerSyncers

Returns all the Player Syncers.

Example
AllSyncers = Player.GetAllPlayerSyncers()

IgnoreColliders

 function Player.IgnoreColliders((GameObject)GameObject to ignore)
Parameter Type 📝 Description
GameObject to ignore GameObject Game object we want our player to ignore.

Player.IgnoreColliders

Makes the player ignore the colliders of a GameObject.

Example
Player.IgnoreColliders(newGameObject)

StopIgnoringColliders

 function Player.StopIgnoringColliders((GameObject)GameObject to stop ignoring)
Parameter Type 📝 Description
GameObject to stop ignoring GameObject Game object we want our player to stop ignoring.

Player.StopIgnoringColliders

Makes the player stop ignoring the colliders of a GameObject.

Example
Player.StopIgnoringColliders(newGameObject)

Comments