- Joined
- May 24, 2016
- Messages
- 339
Hello, I'm using BPower's missile system, and I have an ability to throw snowball from a hero point to target point.
Since it's not a homing projectile, I believe there's a way to measure a time projectile takes to reach the target point. I want to give special effect to target x y right before missile actually reaches the target point.
JASS:
call TriggerExecute( gg_trg_Missile_Configurate )
set udg_Missile__Owner = GetOwningPlayer(c)
set udg_Missile__Origin = GetUnitLoc(c)
set udg_Missile__OriginZ = 70
set udg_Missile__Impact = Location(x,y) //Get Spell target x and y
set udg_Missile__ImpactZ = 40.00
set udg_Missile__Speed = 600
if LVL == 1 then
set udg_Missile__Scale = 1.25
elseif LVL == 2 then
set udg_Missile__Scale = 1.45
else
set udg_Missile__Scale = 1.65
endif
set udg_Missile__Arc = 55
set udg_Missile__Collision = 108.00
set udg_Missile__Height = 800
set udg_Missile__Damage = mp //its damage actually
set udg_Missile__Model = "war3mapImported\\FrostOrb.mdx"
udg_Missile__OnRemove= gg_trg_LichFrostNova
set udg_Missile__Data = GetPlayerId(GetOwningPlayer(c))