TriggerOnceOnDrop

TriggerOnceOnDrop

A one-shot trigger that fires when a specific named item is dropped on this cell. Once it fires it removes itself, so it will never fire again.

Typical use: detect when the player places a particular item at a location — e.g. an altar that reacts only when the Chalice is set down — then vanish so the scene plays out exactly once.

Constructor

new TriggerOnceOnDrop()

Source:

Extends

Classes

TriggerOnceOnDrop

Methods

getProxiedTerrain()

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

Source:
Overrides:

onDropInternal()

Description:
  • Fires the color event and removes this trigger when the dropped item's name exactly matches TriggerOnceOnDrop#itemName. Skips silently when the event is already cancelled or the item does not match.

Source: