Mullit
New Member
- Reaction score
- 51
I have made a spell called Whats that? what the spell does is makes all units aroung the caster look to the casting point and stay looking at it for 3 seconds. So it would seem as thought the caster had pointed something and shouted whats that?
Here is the trigger and it doesnt work.
I have edited storm bolt so it does no damage and has a 3 second duration.
what it actually does is just make the units face the cast point without any stun.
Apart from memory leaks can someone please tell me whats wrong with it?
btw I based the spell off shockwave, If thats the problem could someone please suggest another point targetable spell I could base it off so it will work.
thanks in advance.
Here is the trigger and it doesnt work.
Code:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Whats That?
Actions
Set Whats_that_point = (Target point of ability being cast)
Set Whats_That_Cast_point = (Position of (Casting unit))
Set Whats_That_group = (Units within 300.00 of Whats_That_Cast_point)
Unit Group - Pick every unit in Whats_That_group and do (Actions)
Loop - Actions
Unit - Make (Picked unit) face Whats_that_point over 0.10 seconds
Unit - Create 1 dummy for (Owner of (Casting unit)) at (Position of (Picked unit)) facing Default building facing (270.0) degrees
Unit - Add Storm Bolt to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
I have edited storm bolt so it does no damage and has a 3 second duration.
what it actually does is just make the units face the cast point without any stun.
Apart from memory leaks can someone please tell me whats wrong with it?
btw I based the spell off shockwave, If thats the problem could someone please suggest another point targetable spell I could base it off so it will work.
thanks in advance.