• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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