mirror of
https://github.com/APercy/airutils
synced 2025-11-14 10:47:59 +01:00
improved copilot detacchment
This commit is contained in:
parent
86432a1979
commit
07a1d382c6
@ -193,6 +193,7 @@ function airutils.dettach_pax(self, player)
|
|||||||
-- passenger clicked the object => driver gets off the vehicle
|
-- passenger clicked the object => driver gets off the vehicle
|
||||||
if self.co_pilot == name then
|
if self.co_pilot == name then
|
||||||
self.co_pilot = nil
|
self.co_pilot = nil
|
||||||
|
self._passengers[2] = nil
|
||||||
else
|
else
|
||||||
local max_seats = table.getn(self._seats)
|
local max_seats = table.getn(self._seats)
|
||||||
for i = max_seats,1,-1
|
for i = max_seats,1,-1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user