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

Disable unit reaction

Status
Not open for further replies.
Level 2
Joined
Jul 9, 2012
Messages
9
So guys.. i have a problem with my map. When an unit is being attacked, it moves uncontrollably.. :ogre_rage:
Currently im using my arrow key movement system, and to prevent movement using mouse i made a trigger, which i attach in the bottom of this post.

And yeah, all my heros have their attacks disabled.
Is there any way to prevent units to react when they get hit?
Or i should find another way to prevent mouse usage?
Please reply ASAP , thx:thumbs_up:
 

Attachments

  • Trigger.jpg
    Trigger.jpg
    23.8 KB · Views: 55
Level 33
Joined
Mar 27, 2008
Messages
8,035
Object Editor -> Units Tab -> Select Unit -> Stats - Can Flee: False
I'm assuming your unit can't attack normally, right ?
This is why it will flee if he can't fight back.

Usually this mechanics will be applied to Workers since they are not created to fight, but to serve and building up nations.
If the unit flee, it will save its life and can live for another day.
 
Status
Not open for further replies.
Top