Question updated!!
Alright I got it working now.
Although I seem have another issue.
My Player 12 creeps seem to be respawning at the position of their death location, instead of their original map initialization points, from trigger:
Can you help with that?
Rest of trigger system follows:
Player() starts with index 0.
Player(0) is Player 1 (red)
...
Player(11) is Player 12 (brown)
You can just use GetTriggerPlayer(), though.
Alright I got it working now.
Although I seem have another issue.
My Player 12 creeps seem to be respawning at the position of their death location, instead of their original map initialization points, from trigger:
-
Creep Respawn Point Saver
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set Creep_Respawn_Timer = 70.00
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units in (Entire map) owned by Player 12 (Brown)) and do (Actions)
-



Loop - Actions
-




Set Creep_Respawn_Integer = (Creep_Respawn_Integer + 1)
-




Unit - Set the custom value of (Picked unit) to Creep_Respawn_Integer
-




Set Creep_Respawn_Point[Creep_Respawn_Integer] = (Position of (Picked unit))
-
-
-
-
Can you help with that?
Rest of trigger system follows:
-
Creep Respawn
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Custom value of (Triggering unit)) Greater than 0
-


((Triggering unit) is Summoned) Not equal to True
-


(Owner of (Triggering unit)) Equal to Player 12 (Brown)
-
-

Actions
-


Custom script: local integer i = GetUnitTypeId(GetTriggerUnit())
-


Custom script: local integer ii = GetUnitUserData(GetTriggerUnit())
-


Wait Creep_Respawn_Timer game-time seconds
-


Custom script: call SetUnitUserData(CreateUnit(Player(11),i,GetLocationX(udg_Creep_Respawn_Point[ii]),GetLocationY(udg_Creep_Respawn_Point[ii]),270),ii)
-


Set Creep_Respawn_Point[Creep_Respawn_Integer] = (Position of (Triggering unit))
-
-
-
Creep Add to Respawn
-

Events
-


Unit - A unit enters (Playable map area)
-
-

Conditions
-


(Owner of (Entering unit)) Equal to Player 12 (Brown)
-


((Entering unit) is Summoned) Equal to False
-
-

Actions
-


Set Creep_Respawn_Integer = (Creep_Respawn_Integer + 1)
-


Unit - Set the custom value of (Entering unit) to Creep_Respawn_Integer
-


Set Creep_Respawn_Point[Creep_Respawn_Integer] = (Position of (Entering unit))
-


Unit - Make (Triggering unit) face (Random angle) over 0.00 seconds
-
-
Last edited:







