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

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