bus fix
make the bus stop when you eject so that you don't get run over
This commit is contained in:
parent
9c5a506bb8
commit
48c160dcb2
@ -3,7 +3,9 @@
|
||||
_bus = _this select 0;
|
||||
_unit = _this select 2;
|
||||
|
||||
if(isPlayer _unit) then
|
||||
{
|
||||
_bus removeAction SC_bustop;
|
||||
};
|
||||
_bus setFuel 0;
|
||||
_busDriver = driver _bus;
|
||||
_busDriver disableAI "MOVE";
|
||||
_bus animateDoor ["Doors_1", 1];
|
||||
_bus animateDoor ["Doors_2", 1];
|
||||
_bus animateDoor ["Doors_3", 1];
|
@ -3,9 +3,3 @@
|
||||
_bus = _this select 0;
|
||||
_unit = _this select 2;
|
||||
|
||||
if(isPlayer _unit) then
|
||||
{
|
||||
hint "You got on the bus";
|
||||
SC_bustop = _bus addAction ["Stop the bus", { SC_StopTheBus = true } ];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user