- Joined
- Dec 11, 2014
- Messages
- 2,004
Let's say I'm making a Cinematic, and my Dude (gg_unit_H001_0013) is gonna Teleport a LOT in my Fight. Therefore, I used this Snippet as I'm too lazy.
Give it where to Create, how much to channel, how much to stay invisible, how much to wait for coming back. The Whole Thing is Functioning, so other Functions who the Timers are Refering are working, BUT!
Any Ideas? Why isn't it working?
Side-note: Hive's JASS highlighter is a bit different than JNGP's
Took me a while to find my
JASS:
function TL takes location l, real i, real stay, real out returns nothing
local location upos = GetUnitLoc(gg_unit_H001_0013)
local effect p = AddSpecialEffectLoc("Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl", upos)
local unit dl = CreateUnitAtLoc(Player(0), 'Dum2', upos, 270)
local timer ti = CreateTimer()
local timer tstay = CreateTimer()
local timer tout = CreateTimer()
set bj_lastCreatedUnit = dl
call SetUnitAnimation(gg_unit_H001_0013, "stand channel")
call GroupAddUnit(udg_Turn_Group, dl)
call UnitAddAbility(dl, 'Arav')
call SetUnitFlyHeight(dl, 800.00, 800.00 / i)
call UnitRemoveAbility(dl, 'Arav')
call TimerStart(ti, i, false, function go)
call TimerStart(tstay, i + stay, false, function back)
call TimerStart(tout, i + stay + out, false, function finish)
call DestroyEffect(p)
call RemoveLocation(upos)
set udg_TLloc = l
set upos = null
set p = null
set dl = null
set ti = null
set tstay = null
set tout = null
endfunction
Give it where to Create, how much to channel, how much to stay invisible, how much to wait for coming back. The Whole Thing is Functioning, so other Functions who the Timers are Refering are working, BUT!
call SetUnitFlyHeight(dl, 800.00, 800.00 / i)
Is doing nothing. It's just Watching me killing myself why a Native doesn't work when the GUI version does.Any Ideas? Why isn't it working?
Side-note: Hive's JASS highlighter is a bit different than JNGP's
Took me a while to find my
'Arav'
in there -__-