Question solved:
So I was following this guide:
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/creep-respawn-gui-65987/
I followed his bug-free custom script trigger:
(Mine)
What have I done wrong?
I have already looked it through 10 times. Notice that I use Player 12 as creep respawn player, while he uses Neutral Hostile.
Also, how do I define, codewise, how to make the unit face a random angle in the custom script? It is set to 270 in the last custom script.
Last, but not least, I would love to know if his trigger actually leaks? He is using an Array point, so I guess the point information is not lost and can be overwritten?
I think that was all. Hope you will be able to help.
So I was following this guide:
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/creep-respawn-gui-65987/
I followed his bug-free custom script trigger:
(Mine)
-
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(12),i,GetLocationX(udg_Creep_Respawn_Point[ii]),GetLocationY(udg_Creep_Respawn_Point[ii],270,ii)
-
Set Creep_Respawn_Point[Creep_Respawn_Integer] = (Position of (Picked unit))
-
-
What have I done wrong?
I have already looked it through 10 times. Notice that I use Player 12 as creep respawn player, while he uses Neutral Hostile.
Also, how do I define, codewise, how to make the unit face a random angle in the custom script? It is set to 270 in the last custom script.
Last, but not least, I would love to know if his trigger actually leaks? He is using an Array point, so I guess the point information is not lost and can be overwritten?
I think that was all. Hope you will be able to help.
Last edited: