1 #include "disablerelay.qh"
3 void trigger_disablerelay_use(entity this, entity actor, entity trigger)
7 for(entity e = NULL; (e = find(e, targetname, this.target)); )
9 if(e.use == SUB_UseTargets)
11 e.use = SUB_DontUseTargets;
14 else if(e.use == SUB_DontUseTargets)
16 e.use = SUB_UseTargets;
22 LOG_INFO("Invalid use of trigger_disablerelay: ", ftos(a), " relays were on, ", ftos(b), " relays were off!");
25 spawnfunc(trigger_disablerelay)
27 this.use = trigger_disablerelay_use;