hiding plane while landed
This commit is contained in:
parent
3f12d89a8d
commit
1f8c1a635c
@ -177,6 +177,19 @@ function airutils.logic(self)
|
|||||||
local co_pilot = nil
|
local co_pilot = nil
|
||||||
if self.co_pilot and self._have_copilot then co_pilot = minetest.get_player_by_name(self.co_pilot) end
|
if self.co_pilot and self._have_copilot then co_pilot = minetest.get_player_by_name(self.co_pilot) end
|
||||||
|
|
||||||
|
local plane_properties = self.object:get_properties()
|
||||||
|
if self.isonground then
|
||||||
|
if plane_properties.show_on_minimap == true then
|
||||||
|
plane_properties.show_on_minimap = false
|
||||||
|
self.object:set_properties(plane_properties)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if plane_properties.show_on_minimap == false then
|
||||||
|
plane_properties.show_on_minimap = true
|
||||||
|
self.object:set_properties(plane_properties)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if player then
|
if player then
|
||||||
local ctrl = player:get_player_control()
|
local ctrl = player:get_player_control()
|
||||||
---------------------
|
---------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user