• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

if unit was removed?

Status
Not open for further replies.
Level 4
Joined
Jan 20, 2011
Messages
65
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?
 
Level 4
Joined
Jan 20, 2011
Messages
65
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.
Top