make the bus stop when you eject so that you don't get run over
This commit is contained in:
second_coming 2016-04-15 18:06:35 +01:00
parent 9c5a506bb8
commit 48c160dcb2
2 changed files with 6 additions and 10 deletions

View File

@ -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];

View File

@ -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 } ];
};