• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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