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

Units fleeing

Status
Not open for further replies.
Level 12
Joined
Nov 5, 2007
Messages
730
How can i make critters run when you get within 250 range of them?But i want them to run away from you,so that you cant never catch them if your speed is less then theirs.
 
Level 12
Joined
Nov 5, 2007
Messages
730
No,i want it something liek this:

when the unit comes within 300 range of critter,order the critter to run for 5 seconds away from the unit.Away means that if i approach the unit it turns around and starts fleeing for 4 seconds.If i did it with the rect,and the rect was behind me,the unit would run in my direction,then behind me.
 
Status
Not open for further replies.
Top