This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
UnitRefFromVariable( string );
only works for pre-placed units. Their references are stored in the map's object file, which is meant by variable. The function probably returned null because of faulty input. That would explain it.
Use
UnitRefFromUnit( gv_p[lp_pid].lv_builder );
You probably made a mistake. Can you post how you did it?
Just from hearing it sounds that the unit variable you're using in the event is null and thus any unit is allowed to trigger.
only works for pre-placed units. Their references are stored in the map's object file, which is meant by variable. The function probably returned null because of faulty input. That would explain it.
Use
You probably made a mistake. Can you post how you did it?
Just from hearing it sounds that the unit variable you're using in the event is null and thus any unit is allowed to trigger.