Entity.hide

Hides an entity from this entity, if this entity can see it.

class Entity
bool
hide

Parameters

entity Entity

the entity to be hidden

Return Value

Type: bool

true if the entity has been hidden, false otherwise

Examples

foreach(Living living ; entity.watchlist!Living) {
   entity.hide(living);
   living.hide(entity);
}

Meta