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

[Trigger] Neutral Hostile does not attack Buildings

Status
Not open for further replies.
Level 13
Joined
Mar 6, 2008
Messages
850
The Problem:

When a timer expieres, there will be created a neutral hostile unit. It is ordered to walk and attack to a position of a building. If the unit arrives at that position, it only stays there and does not attack the building, but other non-structure units from the same owner as the building.


What can I do that the created unit attacks that building, too?
 
Level 13
Joined
Mar 6, 2008
Messages
850
I see, I have to add more details.

The map is an AOS-type map. There are events like in CW's Cataclysm.

144287-albums4046-picture37996.jpg


In the picture you can see an event boss unit, which spawned somewhere on the map and walked to a control point (red circle). This control point based on the human farm.

Directly issue an attack on the building.

If I do that, the hydra would not attack any other nearby enemy units.

defskull said:
What if there are more than 1 building ?
Does the Neutrals will act on its own after destroying the first building, poor thing (the first building =D)

I want it to do that :) .


Thanks
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
Hm... that's weird.

Units will mostly ignore other units if they don't have an attack. So give the building a 0-0 damage attack, and try it out.

Or create a region around the main building. If a unit enters the region, give it a 50% chance to directly attack the building, and a 50% chance to attack-move to the building.
 
Level 13
Joined
Mar 6, 2008
Messages
850
Hm... that's weird.

Units will mostly ignore other units if they don't have an attack. So give the building a 0-0 damage attack, and try it out.

Or create a region around the main building. If a unit enters the region, give it a 50% chance to directly attack the building, and a 50% chance to attack-move to the building.

0-0 damage attack worked, thank you so much. This bothered me the whole last week-end :D

I do not try the second suggestion, because there is the chance that the unit will not attack the building.:goblin_good_job:
 
Status
Not open for further replies.
Top