- Joined
- May 1, 2009
- Messages
- 215
Bizarre, I must be doing something obviously wrong here... but I can't seem to figure it out.
The idea of this spell is the user will move 1/4 the distance of the target point of the ability being cast every 0.3 seconds (so basically 1 second to move the distance to the target). It seems simple, but I'm probably doing something rather foolish here. Anyone care to point it out for me? I'm stumped.
For whatever reason, the caster only moves once then stays there, invulnerable and paused. Now that I think about it, perhaps it's how I'm asking it to move the unit (perhaps I need it to move with a different offeset mechanism)....
-
Events
-
Unit - A unit begins casting an ability
-
-
Conditions
-
Ability equal to Line Slash
-
-
Actions
-
Set SlashCast = Casting Unit
-
Set SlashCastPoint = Target of point ability being cast
-
Set SlashCastedPoint = Point of Casting Unit
-
Unit - Pause SlashCast
-
Unit - Make SlashCast Invulnerable
-
Region - Center SlashRegion on SlashCastPoint
-
Trigger - Turn on Move
-
-
Events
-
Time - Every 0.3 seconds of game time
-
-
Conditions
-
SlashCast is paused Equal to True
-
-
Actions
-
Unit - Move SlashCast instantly to SlashCastPoint offset by (((Distance between (Center of SlashRegion and SlashCastedPoint) / 4 + 100) towards (Facing of SlashCast) degrees)
-
-
Evemts
-
Unit - A unit enters SlashRegion
-
-
Conditions
-
Unit-type of Entering Unit Equal to Dummy
-
Entering Unit is paused Equal to True
-
-
Actions
-
Unit - Unpause (entering unit)
-
Selection - Add Entering unit to selection for owner of entering unit
-
Unit - Make SlashCast vulnerable
-
Custom Script: call RemoveLocation(Udg_SlashCastedPoint)
-
Custom Script: call RemoveLocation(Udg_SlashCastPoint)
-
Trigger - Turn off Move
-
The idea of this spell is the user will move 1/4 the distance of the target point of the ability being cast every 0.3 seconds (so basically 1 second to move the distance to the target). It seems simple, but I'm probably doing something rather foolish here. Anyone care to point it out for me? I'm stumped.
For whatever reason, the caster only moves once then stays there, invulnerable and paused. Now that I think about it, perhaps it's how I'm asking it to move the unit (perhaps I need it to move with a different offeset mechanism)....