added auto remove code

This commit is contained in:
Alexsandro Percy 2024-03-03 17:50:54 -03:00
parent ed43997bea
commit d584970c76
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@ function airutils.on_activate(self, staticdata, dtime_s)
if self._engine_running then
self._last_applied_power = -1 --signal to start
end
if data.remove then
self.object:remove()
return
end
end
self._climb_rate = 0