Hatebreeder
So many apples
- Reaction score
- 381
Hey all,
Since someone inspired me of learning JASS, I thought, that I might give it a try.
The following Trigger is supposed to be a One Target Omni Slash. The caster moves to Target 5 times at 5 different angles.
This is what I've got so far:
What must I write to move the Caster U, to the location of the unit T?
Since someone inspired me of learning JASS, I thought, that I might give it a try.
The following Trigger is supposed to be a One Target Omni Slash. The caster moves to Target 5 times at 5 different angles.
This is what I've got so far:
JASS:
function Trig_Condition takes nothing returns boolean
return GetSpellAbilityId() == 039;A000039;
endfunction
function Trig_Actions takes nothing returns nothing
set local unit U = GetTriggerUnit
set local unit T = GetSpellTargetUnit
loop
endif I >= 5
set local I = (I + 1)
set local real Angle = 360 / I
set local location UL = GetLocationX(U),GetLocationY(U)
set local location TL = GetLocationX(T),GetLocationY(T)
// Do Actions here
set local location UL = null
set local location TL = null
call RemoveLocation(UL)
call RemoveLocation(TL)
call PolledWait(0.35)
endloop
endfunction
What must I write to move the Caster U, to the location of the unit T?