- Joined
- Feb 20, 2014
- Messages
- 409
Hi,
I use this trigger since one year (creating rpg map) and today the creeps don't respawn anymore.
The trigger is still the same,it works since one year,including yesterday.
I don't what's wrong.
I use this trigger since one year (creating rpg map) and today the creeps don't respawn anymore.
The trigger is still the same,it works since one year,including yesterday.
I don't what's wrong.
-
Events
-
Map initialization
-
-
Groupe unit - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Boucle - Actions
-
Set TempInt = (TempInt + 1)
-
Custom script: set udg_CreepX[udg_TempInt] = GetUnitX(GetEnumUnit())
-
Custom script: set udg_CreepY[udg_TempInt] = GetUnitY(GetEnumUnit())
-
Unité - Set the custom value of (Picked unit) to TempInt
-
-
-
Events
-
Unit - A unit owned by Neutre Hostile Meurt
-
-
Actions
-
Custom script: local integer id = GetUnitTypeId(GetTriggerUnit())
-
Custom script: local integer i = GetUnitUserData(GetTriggerUnit())
-
Custom script: local real x = udg_CreepX[i]
-
Custom script: local real y = udg_CreepY[i]
-
Wait 10.00 seconds
-
Custom script: call SetUnitUserData(CreateUnit(GetTriggerPlayer(), id, x, y, 0.), i)
-