hello im trying to make a custom ability and when the ability is used theres a trigger that shoots out like 5 different shockwaves so more then one shoot
Events
Unit - A unit Starts the effect of Shockwave
Conditions
(Ability being cast) Equal to Shockwave
Actions
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Unit - Create 1 Demon Hunter for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Add Shockwave to (Last created unit)
Unit - Set level of Shockwave for (Last created unit) to (Level of Shockwave) for (Triggering unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Triggering unit)) offset by 256.00 towards ((Facing of (Triggering unit)) + ((50.00 x (Real((Integer A)))) - 150.00)) degrees)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
and it doesnt work
when i try it
only one demon hunter is made and its not placed where the original demon hunter is so you see 2
can some1 help
Events
Unit - A unit Starts the effect of Shockwave
Conditions
(Ability being cast) Equal to Shockwave
Actions
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Unit - Create 1 Demon Hunter for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Add Shockwave to (Last created unit)
Unit - Set level of Shockwave for (Last created unit) to (Level of Shockwave) for (Triggering unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Triggering unit)) offset by 256.00 towards ((Facing of (Triggering unit)) + ((50.00 x (Real((Integer A)))) - 150.00)) degrees)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
and it doesnt work
when i try it
only one demon hunter is made and its not placed where the original demon hunter is so you see 2
can some1 help