Strata - v1.4.10
    Preparing search index...

    Function createTriggerSystem

    • Creates a TriggerSystem for the ECS world.

      This system handles spatial proximity checks, cooldowns, and trigger lifecycle. It expects entities with 'trigger' and 'transform' components, and 'triggerable' entities with 'transform' components.

      Type Parameters

      Returns SystemFn<T>

      An ECS SystemFn

      const triggerSystem = createTriggerSystem();
      world.addSystem(triggerSystem);