• 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.

How use a custom script to launch a unit?

Status
Not open for further replies.
Level 19
Joined
Aug 24, 2007
Messages
2,888
hmm things you asked for is not too easy
so there is no simple custom script for that
it will be pretty hard to make something you asked for
 
Level 3
Joined
Dec 18, 2007
Messages
40
I think YOu can use the ACtion :
Unit set Unit movement speed to 50%
Unit order to move to To (center of region)


You can find the point where the Unit was moved with the '' TARGET of ability being Cast '' If that is what you asked :) :) :) :) :)
 
Level 6
Joined
May 13, 2005
Messages
164
Create a trigger that moves the unit a small distance to a point towards the destination every 0.01 - 0.03 secs. Remove leaks and some arithmetic is needed for calculating the distance moved. However, this causes the moved unit to be ''literally'' stunned while the movement occurs.

For example;

Moving Unit
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set UnitPoint = ((Position of MovedUnit) offset by 3.00 towards (Angle from (Position of (MovedUnit)) to DestinationPoint) degrees)
Unit - Move MovedUnit instantly to UnitPoint, facing (Facing of MovedUnit) degrees
Custom script: call RemoveLocation(udg_UnitPoint)


In this trigger, DestinationPoint is the destination where your unit will finally reach, UnitPoint is the point where your unit will be moved gradually towards the destination. MovedUnit is obviously the moved unit.
 
Status
Not open for further replies.
Top