PlayerClass
A script class that is instanced for every active Player in the game.
Kind: API page
Environments: Game
Game
A player represent a user controlling a Character.
The player script handles actions made by the user.
Can receive events sent with sm.event.sendToPlayer.
Fields
| Name | Type | Description |
|---|---|---|
player |
Player | The Player game object belonging to this class instance. |
network |
Network | A Network object that can be used to send messages between client and server. |
storage |
Storage | (Server side only.) A Storage object that can be used to store data for the next time loading this object after being unloaded. |