Creep Respawn System Help

Status
Not open for further replies.

ZIR

ZIR

Level 10
Joined
Jan 12, 2010
Messages
321
Yes it was the angle at which the unit dies.

This one should work better:

Create a new arrayed real variable named Unit_Angle.
You have to change the Map Initialization trigger like this.
  • Nahkampf-Initialisierung
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set RespawnTime = 2
      • Unitgroup - Pick every unit in (Units in (Playable map area) owned by Neutral feindlich) and do (Actions)
        • Schleifen - Aktionen
          • Set TempInteger = (TempInteger + 1)
          • Unit - Set the custom value of (Picked unit) to TempInteger
          • Set Creep_Point[TempInteger] = (Position of (Picked unit))
          • Set Unit_Angle[TempInteger] = (Facing of (Picked unit))
And the third custom script in the respawn trigger has to be like this:
  • Respawn
    • Custom script: local real r = udg_Unit_Angle[ii]
And you're done.
 
Status
Not open for further replies.
Top