Skip to main content

Type Alias: EntityDirective

type EntityDirective = "delete" | "hide" | "show";

Defined in: livelink.clients/livelink.agent/sources/data/EventMapping.ts:29

A whole-entity action, written instead of component patches when an event does not change the entity but changes whether it is there at all — a vehicle leaving the fleet, a machine part going out of service.

  • "delete" removes the entity from the scene (and forgets its resolution, so a later event carrying the same id resolves — or respawns — it);
  • "hide" / "show" toggle entity.is_visible, keeping the entity and its resolution.