2 void relay_activators_use()
4 for(entity trg = world; (trg = find(trg, targetname, this.target)); )
8 trg.setactive(this.cnt);
11 //bprint("Not using setactive\n");
12 if(this.cnt == ACTIVE_TOGGLE)
13 if(trg.active == ACTIVE_ACTIVE)
14 trg.active = ACTIVE_NOT;
16 trg.active = ACTIVE_ACTIVE;
18 trg.active = this.cnt;
24 spawnfunc(relay_activate)
26 self.cnt = ACTIVE_ACTIVE;
27 self.use = relay_activators_use;
30 spawnfunc(relay_deactivate)
32 self.cnt = ACTIVE_NOT;
33 self.use = relay_activators_use;
36 spawnfunc(relay_activatetoggle)
38 self.cnt = ACTIVE_TOGGLE;
39 self.use = relay_activators_use;