TriggerOnce

TriggerOnce

Fires a color event (and optional message) when the player steps on it, then removes itself so it will never fire again.

Typical use: play a one-time scene or reward the first time a player reaches a location — e.g. show an introductory message when entering a new area for the first time.

Constructor

new TriggerOnce()

Source:

Extends

Methods

getProxiedTerrain()

Description:
  • Return the terrain being wrapped (TerrainProxy interface).

Source:
Inherited From:

onEnterInternal()

Description:
  • Fires the color event and, if set, shows a modal message to the player (unlike the base Trigger, which shows an inline message), then removes this decorator from the cell. Skips silently when the event is already cancelled.

Source:
Overrides: