ig.

EntityTriggerController

new EntityTriggerController()

Trigger that activates or deactivates targets based on whether it is activated or deactivated.
- this entity can be used to set up a system of activating and deactivating triggers
- very useful for setting up spawn and despawn areas in levels for better performance

Author:
  • Collin Hover - collinhover.com
Source:

activeState :Boolean

Whether controller state is active.

Default Value:
  • true
Source:

once

Controller can activate or deactivate more than once in succession.

Default Value:
  • false
Source:

triggerable

Controller should not trigger through collision.

Default Value:
  • false
Source:

deactivate()

Controller deactivates all targets and calls complete.

Source:

handleTargets()

Source:

handleTargetsActivate(entity)

Activates all handled targets.

Parameters:
Name Type Argument Description
entity ig.EntityExtended <optional>
Source:

handleTargetsDeactivate(entity)

Dectivates all handled targets.

Parameters:
Name Type Argument Description
entity ig.EntityExtended <optional>
Source:

trigger()

Source: