parent

If the entity was contained in a sublevel (map entity), this pointer points to the map entity; otherwise it's NULL. If it points to the current view.genius, the entity is not rendered in the view when the genius is not potentially visible.

Type:

ENTITY*

Example:

if (my.parent == you)
{ my.enable_trigger = off; }

See also:

map_subents, shadow

► latest version online