Jump to content

Is Unit.isExist broken/changed with the latest update?


Recommended Posts

Posted (edited)

Hi,

 

 

Suddenly, my script is broken and I've narrowed it down to Unit.isExist returns true even for dead units. I was under the impression that Unit.isExist returns false for dead units. I tried using Unit.getLife instead to check if units are dead but it "31" for units regardless of "state"...

 

Is it broken or have I been using Unit.isExist wrong all along?

 

The strange thing is that it seems to return false for dead units until I've respawned units a couple of times, then it starts returning true regardless of wether the unit is destroyed or not.

 

 

Anyone experiencing the same issue(s)?

 

 

EDIT: Solved. Reinstalled DCS World and Unit.isExist now giving proper results. Dunno if it was because of an update or it was my installation that was damaged...

Edited by gromit190
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...