Trigger relay

Trigger relay

Classname: trigger_rel
Purpose: Indirect triggering; fancy effects.
H2 Code: triggers.hc
Fields Required: targetname, target
When triggered, causes its targets to fire. Extensively used in triggering complicated sequences of events. Lots of stuff I don't understand.

Fields

origin Value is a triple of numbers, not needed (although it appears in Raven's maps, but is useful for debugging if your map-editor has a graphic display of trigger->target relations in the map).
target Value is a name; Entity with matching targetname value is triggered when trigger_relay fires.
fadespeed Value is a number, supposedly speed at which lights go on/off; I haven't had much luck with it but it appears in rider2c.
delay Value is a number, the delay before target is triggered. delay doesn't seem to work quite right for turning off lights; if the targetted entity is a light, it goes out immediately, and then comes back on after the delay! The cure for this is to put a second trigger_relay between the delayed one and the lights.
killtarget Value is a name, entity with matching targetname is fired if a trigger, and then removed (mostly).
message Value is a number, indicating the message to be displayed when trigger fires.
wait Value is a number; presumably long it takes (sec) for trigger to be re-fireable. -1 values appear in egypt2, 5 in ravdm1, but I haven't gotten wait to do anything useful.
netname value is a name, used in egypt4 with value "boat", egypt5 with value "jem". Its use is probably simailar to that with trigger_once and trigger_multiple, but I haven't looked into it carefully.
style value is a number, often shared by lights being controlled, but I haven't managed to figure out exactly why.
spawnflags: None are documented in the .hc source. In the maps, value 199808 appears in romeric7, and 192 in riderc; don't know what they're doing (possibly nothing; if the implementation changes, now-useless data might well be just left in the maps).

Back to the list.