Script/Entity

class Entity

Represents a reference to an entity in the game world (e.g. a building, creature, etc.).

An instance of this class acts like a weak pointer to an existing entity in the game world and provides an interface to interact with it.
Before interacting with the entity, you should call Exists() in order to check if the entity actually (still) exists.
IMPORTANT: This class must NOT be stored as a class member. If you want to store the entity for later reference, store the id
obtained by GetId instead. You can then later retrieve the entity from the LevelReference class by calling GetEntityById.

class Entity

Represents a reference to an entity in the game world (e.g. a building, creature, etc.).

An instance of this class acts like a weak pointer to an existing entity in the game world and provides an interface to interact with it.
Before interacting with the entity, you should call Exists() in order to check if the entity actually (still) exists.
IMPORTANT: This class must NOT be stored as a class member. If you want to store the entity for later reference, store the id
obtained by GetId instead. You can then later retrieve the entity from the LevelReference class by calling GetEntityById.