Basically i use a script to Respawn Creeps in there original spot, i use it on old map and it works perfectly, but for some reason on this map, when u chose a hero u cant move the hero anymore, but disabling the trigger to respawn creeps and u can move hero
EDIT: well there no longer freezing player, but they now only respawn half the time, anyone know a fix
-
SetUpCR
-

Events
-


Time - Elapsed game time is 0.01 seconds
-
-

Conditions
-

Actions
-


Set VariableSet Respawn_Time = 30.00
-


Unit Group - Pick every unit in (Units owned by Neutral Hostile.) and do (Actions)
-



Loop - Actions
-




Set VariableSet Temp_Interger = (Temp_Interger + 1)
-




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




Set VariableSet Creep_Point[Temp_Interger] = (Position of (Picked unit))
-
-
-
-
-
RespawnCRCS
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Owner of (Triggering unit)) Equal to Neutral Hostile
-


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

Actions
-


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


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


Wait Respawn_Time seconds
-


Custom script: call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Creep_Point[ii]),GetLocationY(udg_Creep_Point[ii]),270),ii)
-
-
-
ReAddCR
-

Events
-


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

Conditions
-


(Owner of (Triggering unit)) Equal to Neutral Hostile
-
-

Actions
-


Set VariableSet Temp_Interger = (Temp_Interger + 1)
-


Unit - Set the custom value of (Triggering unit) to Temp_Interger
-


Set VariableSet Creep_Point[Temp_Interger] = (Position of (Triggering unit))
-
-
EDIT: well there no longer freezing player, but they now only respawn half the time, anyone know a fix
Last edited:
