mirror of
https://github.com/APercy/automobiles_pck
synced 2025-06-16 13:58:01 +02:00
improved player dettachment
This commit is contained in:
parent
3668a32c6c
commit
075c1b0278
@ -98,13 +98,13 @@ function motorcycle.dettach_driver_stand(self, player)
|
||||
player:set_properties({mesh = self.driver_properties.mesh})
|
||||
self.driver_properties = nil
|
||||
end
|
||||
end
|
||||
|
||||
--player:set_properties({visual_size = {x=1, y=1}})
|
||||
if self.driver_mesh then
|
||||
self.driver_mesh:set_properties({is_visible=false})
|
||||
self.driver_mesh:remove()
|
||||
end
|
||||
end
|
||||
self.driver = nil
|
||||
end
|
||||
|
||||
@ -174,13 +174,12 @@ function motorcycle.dettach_pax_stand(self, player)
|
||||
player:set_properties({mesh = self.pax_properties.mesh})
|
||||
self.pax_properties = nil
|
||||
end
|
||||
|
||||
end
|
||||
--player:set_properties({visual_size = {x=1, y=1}})
|
||||
if self.pax_mesh then
|
||||
self.pax_mesh:set_properties({is_visible=false})
|
||||
self.pax_mesh:remove()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
@ -98,13 +98,13 @@ function vespa.dettach_driver_stand(self, player)
|
||||
player:set_properties({mesh = self.driver_properties.mesh})
|
||||
self.driver_properties = nil
|
||||
end
|
||||
end
|
||||
|
||||
--player:set_properties({visual_size = {x=1, y=1}})
|
||||
if self.driver_mesh then
|
||||
self.driver_mesh:set_properties({is_visible=false})
|
||||
self.driver_mesh:remove()
|
||||
end
|
||||
end
|
||||
self.driver = nil
|
||||
end
|
||||
|
||||
@ -178,13 +178,12 @@ function vespa.dettach_pax_stand(self, player)
|
||||
player:set_properties({mesh = self.pax_properties.mesh})
|
||||
self.pax_properties = nil
|
||||
end
|
||||
|
||||
end
|
||||
--player:set_properties({visual_size = {x=1, y=1}})
|
||||
if self.pax_mesh then
|
||||
self.pax_mesh:set_properties({is_visible=false})
|
||||
self.pax_mesh:remove()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user