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

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 13
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