• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How use a custom script to launch a unit?

Status
Not open for further replies.
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
 
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 :) :) :) :) :)
 
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.
Back
Top