Help with making creeps respawn where they originally spawned

Stubal

New Member
Reaction score
0
Ok so i just used this trigger
For position
Unit Group - Pick every unit in (Units owned by Player 9 (Gray)) and do (Actions)
Loop - Actions
Set TempInteger = (TempInteger + 1)
Unit - Set the custom value of (Picked unit) to TempInteger
Set TempPoint[(Custom value of (Picked unit))] = (Position of (Picked unit))
For respawn
Unit - A Unit dies
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at TempPoint[(Custom value of (Triggering unit))] facing Default building facing degrees


After using this trigger and testing my map i found that it had worked! then i had another problem...the creeps were only respawning once =/ and then aftr their 2nd death they stopped respawning please help me end this problem!!
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
sorry my bad. you have got to add the following line to your second "revive" trigger:
Trigger:
  • Unit - Set the custom value of (Last Created Unit) to Custom Value of (Triggering Unit)

the custom value of your unit is used to save the position your unit is going to respawn. after creating a new creep (respawn it) the custom value is 0. you have got to re-set it after creating the creep.
 

Quazi

New Member
Reaction score
1
I have a problem in my map everyone else gets respawned except the players unit i picked :S
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top