#ifdef SVQC
void relay_activators_use(entity this, entity actor, entity trigger)
{
- for(entity trg = world; (trg = find(trg, targetname, this.target)); )
+ for(entity trg = NULL; (trg = find(trg, targetname, this.target)); )
{
if (trg.setactive)
trg.setactive(trg, this.cnt);
spawnfunc(relay_activate)
{
this.cnt = ACTIVE_ACTIVE;
- this.use1 = relay_activators_use;
+ this.use = relay_activators_use;
}
spawnfunc(relay_deactivate)
{
this.cnt = ACTIVE_NOT;
- this.use1 = relay_activators_use;
+ this.use = relay_activators_use;
}
spawnfunc(relay_activatetoggle)
{
this.cnt = ACTIVE_TOGGLE;
- this.use1 = relay_activators_use;
+ this.use = relay_activators_use;
}
#endif