OneBadPsycho
10100111001
- Reaction score
- 93
Heya i need some help on how to clear/remove a local player variable after it have been used.
Thanks in advance
JASS:
function Trig_Respawn_Creep_Actions takes nothing returns nothing
local unit C
local location P
local player B <-- That
set C = GetDyingUnit()
set P = GetUnitLoc(C)
set B = GetOwningPlayer(C)
call TriggerSleepAction(20)
call CreateUnitAtLoc(B,GetUnitTypeId(C),P,GetRandomReal(0,360))
call RemoveUnit(C)
call RemoveLocation(P)
endfunction
Thanks in advance