- Joined
- May 15, 2009
- Messages
- 192
So hi again, I thought this would be a simple ability, but somehow all but of the units I try to hit with the spell, are moved to the center of the map, instead of where they are actually suppose to go. So heres my trigger - not sure what the problem is
Oh and btw, if anyone could redo the ability into pulling the units(fast) instead of just teleporting them to the caster, it would be great - actually, more like PERFECT.
Oh and btw, if anyone could redo the ability into pulling the units(fast) instead of just teleporting them to the caster, it would be great - actually, more like PERFECT.
-
Noxious Winds
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Noxious Winds
-
Actions
- Set NoxiousWinds_Tempp1 = (Position of (Triggering unit))
- Set NoxiousWinds_Tempg = (Units within 600.00 of NoxiousWinds_Tempp1 matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is dead) Not equal to True))))
-
Unit Group - Pick every unit in NoxiousWinds_Tempg and do (Actions)
-
Loop - Actions
- Set NoxiousWinds_Picked = (Picked unit)
- Set NoxiousWinds_Tempp2 = (Position of NoxiousWinds_Picked)
- Special Effect - Create a special effect at NoxiousWinds_Tempp2 using Abilities\Spells\Other\Tornado\TornadoElemental.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at NoxiousWinds_Tempp1 using Abilities\Spells\Other\Tornado\TornadoElemental.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Turn collision for NoxiousWinds_Picked Off
- Custom script: call SetUnitX(udg_NoxiousWinds_Picked,GetLocationX(udg_NoxiousWinds_Tempp1))
- Custom script: call SetUnitY(udg_NoxiousWinds_Picked,GetLocationY(udg_NoxiousWinds_Tempp1))
- Unit - Turn collision for NoxiousWinds_Picked On
- Custom script: call RemoveLocation(udg_NoxiousWinds_Tempp1)
- Custom script: call RemoveLocation(udg_NoxiousWinds_Tempp2)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_NoxiousWinds_Tempg)
-
Events