mirror of
https://github.com/APercy/airutils
synced 2025-08-31 00:26:24 +02:00
added auto remove code
This commit is contained in:
parent
ed43997bea
commit
d584970c76
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user