Skip to content

player

Client-side
Server-side
Shared

Element category: Entity

The player class represents pedestrians controlled by clients. A player element is created when a client connects to the server and destroyed when that client quits. Players cannot be created or destroyed otherwise.

OOP Constructor

Player(...) is the constructor method for the player class (getPlayerFromName).

OOP Methods and Variables

See Also

Element Functions
Reference