• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Creep respawn SISTEM special

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
FIXED Creep respawn SISTEM special FIXED

yo creep respawn point sistem
I Had it long LONG LONGER time ago srsly long :D

when my map starts i got units(Scorpions)
i need to get theyre location
udg_customscript thingy :)

so my next trigger
a unit dies
unit = scorpion
wait 15-75 sec
unit create one unit tipe of diing unit at position Udg_customscript

so my unit dosent respawn at death position...
to prevent pulling all mobs to one spot and grinding easy...
 
Last edited:
Level 11
Joined
Jun 20, 2009
Messages
880
Picked this from my own map. Hope it helps:

  • Creep Respawn Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
        • Loop - Actions
          • Set CreepValue = (CreepValue + 1)
          • Unit - Set the custom value of (Picked unit) to CreepValue
          • Set Creep_Loc[CreepValue] = (Position of (Picked unit))
  • Creep Respawn Setup 2
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Set CreepValue = (CreepValue + 1)
      • Unit - Set the custom value of (Picked unit) to CreepValue
      • Set Creep_Loc[CreepValue] = (Position of (Picked unit))
  • Revive the Creeps
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Triggering unit)) Equal to Neutral Hostile
      • (Custom value of (Triggering unit)) Greater than 0
    • Actions
      • Wait 20.00 game-time seconds
      • Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at Creep_Loc[(Custom value of (Triggering unit))] facing 270.00 degrees
      • Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
      • Set TempLoc = (Position of (Last created unit))
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation (udg_TempLoc)
 
Level 7
Joined
May 18, 2010
Messages
264
whats creep value? intreeger?
at 2nd creep respawn setup ( unit set custom value of picked unit to creep value
picked unit - entering unit?

and ofchourse THANKS
+rep
 
Status
Not open for further replies.
Top