- Joined
- Mar 23, 2008
- Messages
- 942
How do I get the unit that is on "": Unit comes within range of "unit"
The unit that comes within range is triggering unit, and the other?
Edit: For my trigger, also works if I find a way to call my trigger setting a variable at start.
Edit: I got a syntax error at set location tp, someone can help-me?
So, I have other trigger:
The unit that comes within range is triggering unit, and the other?
Edit: For my trigger, also works if I find a way to call my trigger setting a variable at start.
JASS:
function Trig_Sense_Inuyasha_Actions takes nothing returns nothing
local unit tu = udg_tempunit[0]
set location tp = GetUnitLoc(GetTriggerUnit())
set force tf = GetForceOfPlayer(GetOwningPlayer(tu))
call PingMinimapLocForForce( tf, tp, 1 )
call DestroyForce(tf)
endfunction
So, I have other trigger:
-
Sense Inuyasha On
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- (Unit-type of (Entering unit)) Equal to Half Yõkai
-
Actions
- Set tempunit[0] = (Entering unit)
- Trigger - Add to Sense Inuyasha <gen> the event (Unit - A unit comes within 1500.00 of tempunit[0])
- Trigger - Turn on Sense Inuyasha <gen>
-
Events