Entity

PropertyTypeWritableDescription
Coordinate
Read-only
Coordinate this entity is located at.
Function
Spawn()
Spawns the entity on the client map, making it visible.
Despawn()
Despawns the entity from the client map, making it invisible.
SetCoordinate(coordinate: Coordinate)
Sets the entity's coordinate and updates its position on the client.
AddComponent(name: string, componentData: table)
Adds a component to the entity with the given configuration.
GetComponent(name: string): EntityComponent | nil
Gets a component by name from the entity.