Which is meant to fire every time a unit gets within 21 range of any xel'naga tower on the map, but doesn't fire at all. Could anyone help?
As it stands, I've had to make a size 42 circular region around every tower on the map, and make an enter/leave pair of triggers for each one, which is a) a bitch to set up, and b), a bitch to change, (say one of the towers is misplaced).
Any help is appreciated, thanks.
EDIT: The trigger read here doesn't actually make much sense, but if you make it in the trigger editor, it makes sense.
When you add an event to a trigger, it is something which is done with a statment of it's own, in a method of its own. Therefore, if you try to refer to triggering unit from an event, it will in most cases (all GUI cases) make no sense. The events are added at one point, and then they are fixed. If any variables are used in the event, it will only be the value at the time the event is registered that counts. When you're in GUI, events are added at the start of the map.
Anyway.. what you should do is make an event such as what you have done pr tower. Like so
If you have a whole lot of towers, it is possible to make a bit of custom script code to add all the towers, but for pure GUI, that would be the approach.
I have this trigger:
Which is meant to fire every time a unit gets within 21 range of any xel'naga tower on the map, but doesn't fire at all. Could anyone help?
As it stands, I've had to make a size 42 circular region around every tower on the map, and make an enter/leave pair of triggers for each one, which is a) a bitch to set up, and b), a bitch to change, (say one of the towers is misplaced).
Any help is appreciated, thanks.
EDIT: The trigger read here doesn't actually make much sense, but if you make it in the trigger editor, it makes sense.
When you add an event to a trigger, it is something which is done with a statment of it's own, in a method of its own. Therefore, if you try to refer to triggering unit from an event, it will in most cases (all GUI cases) make no sense. The events are added at one point, and then they are fixed. If any variables are used in the event, it will only be the value at the time the event is registered that counts. When you're in GUI, events are added at the start of the map.
Anyway.. what you should do is make an event such as what you have done pr tower. Like so
If you have a whole lot of towers, it is possible to make a bit of custom script code to add all the towers, but for pure GUI, that would be the approach.
@Asday: Go
You may want to use data for this, depending on the trigger actions you're planning to use.