Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Unit comes within X of unit event
Unit comes within X of unit event
08-24-2003, 09:49 AM
#1
cideh
When using the "Unit comes within X of unit" event, I can get the unit entering the "region"(triggering unit, entering unit).
But how do I find out which unit it comes within range to?
08-24-2003, 04:26 PM
#2
Red Slayer
triggering unit
08-24-2003, 04:34 PM
#3
cideh
No. Triggering unit equals to the unit entering the "region" too.
08-24-2003, 04:43 PM
#4
Catalyst
As you are using an event, the unit must either be fixed, pre placed, or a variable.
In either case, you simply use the pre-placed fixed unit, or the variable, as the unit that is "approached".
cata
08-24-2003, 05:12 PM
#5
jeffsu
I'd go with a variable -- set it up beforehand.