Skip to content

50 — Pickup Crate (any)

Satisfied on the logic pass after anything collects a crate whose overlay is marked as a trigger crate.

Editor data
Numeric ID
50
Engine ID
TEVENT_PICKUP_CRATE_ANY
Editor name
Pickup Crate (any)
Need token
NEED_NONE
Parameters
None
Attachment
general
INI example
[Events]
<TriggerID>=1,50,0,0
Caveats
  • Only a crate whose overlay type carries CrateTrigger=yes raises the flag this event reads. A crate without it is collected without raising it, and which of the two a crate is depends on the overlay type rather than on how the crate reached the map.
  • Collection raises a single scenario-wide flag, so several trigger crates collected in one frame produce one offer between them rather than one each.
  • The flag is read at the top of a logic pass and cleared immediately afterwards, before objects take their turns. A crate collected during those turns is therefore offered on the following pass, and offered exactly once.
  • The offer names nothing about the collector or the crate. A trigger built on this event cannot tell which unit picked what up, and its actions are given no object to work on.
  • The event has nothing to ride on. Its tag joins the general list, which adds nothing to the attachment total a semi-persistent tag waits on, so a trigger built on events of this kind needs a volatile or a persistent tag.
  • A tag on the general list that fires on this offer is not given the rest of that pass's offers in the same frame.
  • The event describes a moment, so a persistent trigger marks it off the first time it arrives and treats it as satisfied from then on.