mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
added auto remove code
This commit is contained in:
parent
ed43997bea
commit
d584970c76
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue