• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] How to make a unit stop sliding after reaching point where ability was casted(hard)!

Status
Not open for further replies.
Level 4
Joined
Aug 3, 2008
Messages
58
a unit casts dash then slides to that area, once the unit reaches that area it keeps trying to slide but stays there. the unit cant move either unless the dash effect trigger if off. I know how to turn it off but my problem is that you can cast dash farther or closer and i just cant put "wait (whatever) seconds". thx in advance.
Dash:events/Unit - A unit Starts the effect of an ability


condition/(Ability being cast) Equal to Dash


Action/Set Caster[(Player number of (Owner of (Casting unit)))] = (Casting unit)

Set Point[(Player number of (Owner of Caster[(Player number of (Owner of (Casting unit)))]))] = (Target point of ability being cast)

Trigger - Turn on Dash Effect <gen>



Dash Effect(not initially on)/Events/Time - Every 0.01 seconds of game time

Condition/none

Action/Unit - Move Caster[(Player number of (Owner of (Casting unit)))] instantly to ((Position of Caster[(Player number of (Owner of (Casting unit)))]) offset by 5.00 towards (Angle from (Position of Caster[(Player number of (Owner of (Casting unit)))]) to Point[(Player number of (Owner of Caster[(Player number of (Owner of (Casting unit)))]

Variables used for these triggers: Point is Point Array 12
Caster is Unit Array 12

TYVM!! GAHH!!
 
Level 4
Joined
Aug 3, 2008
Messages
58
max distance? doesn't that mean all the dash will be the same distance? the ability cast range is 1000 and players will cast its between 1-1000 im confused, can you explain more
 
Level 4
Joined
Aug 3, 2008
Messages
58
omfg thx it works, but i have 1 question. if i increase the casting range of dash in object editor will it effect my trigger?
 
Status
Not open for further replies.
Top