• 🏆 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!

Unit priorities

Status
Not open for further replies.
Level 3
Joined
Jul 3, 2006
Messages
33
I have noticed that in my map the units do not choose targets like they would normally do. For example, towers are hit by melee and ranged units and sometimes they start hitting the ranged one first. And also most units seem prone to start hitting a hero when he comes nearby. They stop attacking their victim to start attacking the hero.

How can I change this?
 
Level 18
Joined
Mar 7, 2005
Messages
824
I think only via triggers..

- get all units within xx range of unit xyz
- if unit type of picked unit equal to abc
-- then order it to stop/attack/etc.

something like this. you need to manually trigger the attacking units.. set some conditions that shall rule over all units. Like melee units get hit first from towers, and so on.
 
Status
Not open for further replies.
Top