HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Neutral Creep Spawn

04-06-2007, 01:32 PM#1
Hsinker
Like in dota how theres neutral creep locations that respawn after a given time.
Im looking for a similar trigger, however the creeps spawned isn't as random; i need a trigger that for designated regions, if theres no creeps already, spawn a group of say footmen and if killed after say 2mins they will be respawned. I dont want a pool of creeps to be available for spawn, just 'footmen'.
04-06-2007, 04:02 PM#2
MaD[Lion]
make 1 trigger to spawn them first with unit create, and count every unit with an integer. And do a wait for condition to wait untill that counter has reaches zero, then do a polled wait for 2 min, and run this trigger again in itself:)
"Iterations are humanlike, recursions are divine"

note: u will need another trigger to run this trigger to begin with
04-06-2007, 11:28 PM#3
Hsinker
Could you provide an example please? Also how do you make it creeps can only be lured for a certain distance then retreat to their spawn position.
04-07-2007, 06:13 AM#4
Zwan
Trigger:
Respawn
Collapse Events
Unit - A unit owned by Neutral Hostile Dies
Conditions
Collapse Actions
Wait 120.00 game-time seconds
Set tPoint = (Random point in CreepRegion)
Unit - Create 1 (Unit-type of (Dying unit)) for Neutral Hostile at tPoint facing (Random angle) degrees
Point - Remove tPoint

MadLion's method is more effecient, but until you get to that point, here is something simple.
04-07-2007, 08:25 AM#5
Hsinker
Thanks for the suggestions guys, i got this working now :)