sunski34 Posted October 7, 2016 Posted October 7, 2016 create a zone in ME, then destroy it and save. Add a script with trigger.misc.getZone with the name of the destroyed zone. Then the function still returns the zone. After retarting DCS, the function returns nil. Not tested with 1.5.4
sunski34 Posted October 9, 2016 Author Posted October 9, 2016 (edited) Not destroy with lua but in the mission editor. In lua only use getZone. When using that functing just after delete the zone in ME still returns the deleted zone. After restarts Dcs retiens nil! Perhaps only exits the mission and reload is the same not tested. Edited October 9, 2016 by sunski34
gromit190 Posted October 11, 2016 Posted October 11, 2016 Perhaps the zone stays in memory until it is overwritten. Is it a problem? Maybe there is no point in removing it from memory until the memory is needed... Autonomous ground AI project
sunski34 Posted October 11, 2016 Author Posted October 11, 2016 I think that the zone stays in memory tes. When debugging lua script that is a problem!
gromit190 Posted January 26, 2017 Posted January 26, 2017 Not destroy with lua but in the mission editor. In lua only use getZone. When using that functing just after delete the zone in ME still returns the deleted zone. After restarts Dcs retiens nil! Perhaps only exits the mission and reload is the same not tested. Maybe a stupid question, but did you save the mission after deleting the zone? I've noticed that the Mission Editor doesn't prompt me to save the mission if zones are the only thing I've changed in it since the last save... Autonomous ground AI project
Recommended Posts