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

Smarter Combat AI

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2007
Messages
71
Yes, My map is a square. There are 4 bridges (each side of the square has one).

Its basically a survival game.. you gotta kill all the units, who are trying to kill a central power station in the center of the square. BUT.. one of the heroes you can select, has an ability "build wall". Which builds a small wall based off a guard tower. The problem is.. the creeps, attempting to attack the central power station.. disregard the walls. Which means, the player can block all 4 bridges, and the stupid creeps just run around, looking for another enterace. (which doesnt exist)

And before you say it.. it already is Attack-move. They are attack-moving. There is something wrong with the walls. For instance.. They will attack a player unit if it is in the way, but not a wall. Please help me.
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
make wall with damage aura and the creeps will get angry and attack it
if that doesn´t work


first make your wall flee=true

maybe make your wall able to move
EVENT
Unit - Is issued an order targeting a point
CONDITIONS
-unit of type ordered unit equal to <wall>
ACTIONS
order (ordered unit) to stop
set CREEPS = unit within <X> range of (ordered unit) matching (<matching unit is a creep>)
order CREEPS to attack (ordered unit)
call DestroyGroup(udg_CREEPS)
 
Status
Not open for further replies.
Top