if unit was removed?

Status
Not open for further replies.
i did some further testing

the GetUnitType == 0 method works if you use a wait action inbetween

call BJDebugMsg(I2S(GetUnitTypeId(theunit)))
call RemoveUnit(theunit)
call BJDebugMsg(I2S(GetUnitTypeId(theunit)))
call TriggerSleepAction(1)
call BJDebugMsg(I2S(GetUnitTypeId(theunit)))

first 2 are 0148125815 somethin
third one is 0

does anybody know a method to check this without a sleep inbetween?
 
no : /
i ended up telling the function which needed to know if it was removed from another function ( by setting unit user data to -1 )
it seems the unit is not removed when the function is called, its removed after ur jass code was called
 
Status
Not open for further replies.
Back
Top