added auto remove code

This commit is contained in:
Alexsandro Percy 2024-03-03 17:54:07 -03:00
parent c410187b55
commit 6747f57cc9
1 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,10 @@ function automobiles_lib.on_activate(self, staticdata, dtime_s)
self._car_gravity = data.stored_car_gravity or -automobiles_lib.gravity
automobiles_lib.setText(self, self._vehicle_name)
if data.remove then
self.object:remove()
return
end
end
if self._painting_load then