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

creeps search for players

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2007
Messages
71
I'm making a game where thers a battle arena, and the creeps come out of the gate and fight the players. But, when the players hide in the corners.. the creeps just run out into the center, and then after a while.. they will run back to the gate. I want to make the creeps run out of the gate and automatically run to the nearest player and start attacking them. any ideas??
 
Level 17
Joined
Nov 18, 2008
Messages
1,538
Is it a square or rectangle map?
make 5 regions, 1 at each corner, and 1 in the middle.
Then when the gate opens have them attack to a random region and when they enter a region have them attack to another random region, that way they will all run around the map, lulz.

Or you do
set a unit group variable to heroes

Events - Periodic event
Pick every units in Arena controlled by Neutral Hostile and do Unit - order picked unit to attack random unit from hero group
Maybe, I'll take a look when I get home
 
Level 5
Joined
Nov 7, 2007
Messages
134
Otherwise you can give the creeps visibility across entire map by using a "Visibility Modifier"-trigger.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Give full map vision to creeps
make their Aqusition Range 99999999999
and order them to attack move center
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Need_O2 Still will mess up the creeps if they have LOS as they will run into a wall trying to get there.
This however is fixable by giving the LOS via triggers and hiding sight of the player bases specifically.

Or you can use my method above which is truely AI and not just auto engaging.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
anyway Topic says Creeps "Search" for players so they will hunt them everywhere so I dont think there is a safehouse
 
Status
Not open for further replies.
Top