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

How to make units attack against air units ranged,and against ground units melee?

Status
Not open for further replies.
Level 1
Joined
Apr 28, 2013
Messages
5
Hello kind people of HIve,
I have little trouble with my map I'm working on.(by the way new to map making, it's my first map)
I want unit to attack ground units as melee, and air units as ranged.
and if possible I want my units melee attack to be hero type and ranged attack magic type.
so my question:
How to make units attack against air units ranged,and against ground units melee?

Thanks in advance for any help. if similar post already exists please give me link.
 
Last edited:
Level 1
Joined
Apr 28, 2013
Messages
5
First, this thread should be in the WEHZ..

and about your problem. That could be changed in the object editor. You can use attack 1 ground attack and attack 2 as the ranged attack. I'll try it now..

EDIT: Are you gonna do this on a hero or on a unit?
EDIT2: Post below deleted.. internet problems.. eheheh

OK. Problem solved.
attack enabled both.
on melee attack type , in targets allowed line, disabled/uncheked air.
and ranged attack type, enabled air.
it works fine. thanks
 
Status
Not open for further replies.
Top