🏆 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!
Individual or all of them?
On the same place the initial were created?
When you want to spawn every preplaced hostile unit another time, you can use call CreateNeutralHostile()
Okay, that sounds more like when a creep was killed created another one after x seconds passed at the same spot he entered the world. I assume you use GUI in jass mod (default). In that case call CreateNeutralHostile() won't help you, because it would create all preplaced creeps on the map regardless if they are dead or not.
To be able to create them were they entered the world you need to know for each creep where it started.
Please use the search function. There are literally dozens of threads asking this exact same question and they all have the same answer: store the information in a big set of parallel arrays.
No. Use the search function. I personally have typed out example triggers for this question at least 3 times and I won’t do it again because you’re too lazy to search. They’ll show right up if you search for “creep respawn”.
The one that i picked can t respawn them if a long period of time passes
Neutral Coords
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in FORUM FFA MAP <gen> owned by Neutral Hostile) and do (Actions)
Loop - Actions
Set Integer = (Integer + 1)
Unit - Set the custom value of (Picked unit) to Integer
Custom script: set udg_Creep_X[udg_Integer] = GetUnitX(GetEnumUnit())
Custom script: set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())
Rev Neutrals
Events
Unit - A unit Dies
Conditions
(Owner of (Dying unit)) Equal to Neutral Hostile
Actions
Wait 30.00 seconds
Set Center_Map = (Center of FORUM FFA MAP <gen>)
Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at (Center_Map offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.