Skip to content

Automatic casting of entities

When using get_entity() the returned entity will automatically be of the correct type. It is not necessary to use the as_<typename> functions.

To figure out what type of entity you get back, consult the entity hierarchy list.

You can also use the types (uppercase <typename>) as ENT_TYPE.<typename> inget_entities functions and pre/post spawn callbacks.

For reference, the available as_<typename> functions are listed below: