Trigger check

Trigger check

Classname: trigger_check
Purpose: Puzzles
H2 Code: triggers.hc
Fields required: netname, targetname, target
This entity checks if the entities targetting and sharing a netname with it are all active, and fires if they all are. Here's a conjecture about what netname does: when a trigger with a netame-value fires, all entities with appropriate coding that share that value wake up and look around, and see if they are supposed to do anything. The idea being that a trigger_check or trigger_counter doesn't have to stay awake all the time to see if the conditions it's looking for obtain, but only has to wake up when somebody with the same netname shouts.

This entity occurs in the original H2 maps egypt2/3/5/6 and romeric4, where it is activated by pressure plates, func_angletriggers, or trigger_crosslevel_targets, and also in PoP tibet3.

I've also got it to work with never-return buttons.

Fields

targetname Value is a name; trigger makes its check when triggered.
target Value is a name; Entity with matching targetname value is triggered.
netname Value is a name, shared uniquely with the triggers that are checked to see if the trigger_check fires.
failtarget (PoP only) Value is a name, targetting entity to fire if the check fails. If left empty, nothing happens.
wait (PoP only) Value is a number, supposedly how long to wait before another check can be made. It's used in tibet3, but I haven't gotten it to work.

Back to the list.