- Joined
- Aug 11, 2009
- Messages
- 605
Hi, I need some help making this trigger revive Heroes instead of creating new units all the time. All creeps are Heroes in my map. The code works without bugs when using custom script but starts to bug out with some creeps not reviving when not using coding. So if someone could make a custom script reviving heroes instead using the values found in this code i would be very thankful!
Here it is:
Here it is:
-
Creep Respawn
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Custom value of (Triggering unit)) Greater than 0
-
(Owner of (Triggering unit)) Equal to Neutral Hostile
-
-
-
-
Actions
-
Custom script: local integer i = GetUnitTypeId(GetTriggerUnit())
-
Custom script: local integer ii = GetUnitUserData(GetTriggerUnit())
-
Wait 60.00 game-time seconds
-
Custom script: call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Point_CreepRespawn[ii]),GetLocationY(udg_Point_CreepRespawn[ii]),270),ii)
-
-
Last edited by a moderator: