From 48c160dcb21a3a84a88577c692b92b4a38385810 Mon Sep 17 00:00:00 2001 From: second_coming Date: Fri, 15 Apr 2016 18:06:35 +0100 Subject: [PATCH] bus fix make the bus stop when you eject so that you don't get run over --- scripts/reactions/getOffBus.sqf | 10 ++++++---- scripts/reactions/getOnBus.sqf | 6 ------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/scripts/reactions/getOffBus.sqf b/scripts/reactions/getOffBus.sqf index bbf18ab..7bee72d 100644 --- a/scripts/reactions/getOffBus.sqf +++ b/scripts/reactions/getOffBus.sqf @@ -3,7 +3,9 @@ _bus = _this select 0; _unit = _this select 2; -if(isPlayer _unit) then -{ - _bus removeAction SC_bustop; -}; \ No newline at end of file +_bus setFuel 0; +_busDriver = driver _bus; +_busDriver disableAI "MOVE"; +_bus animateDoor ["Doors_1", 1]; +_bus animateDoor ["Doors_2", 1]; +_bus animateDoor ["Doors_3", 1]; \ No newline at end of file diff --git a/scripts/reactions/getOnBus.sqf b/scripts/reactions/getOnBus.sqf index efc9224..cd06d58 100644 --- a/scripts/reactions/getOnBus.sqf +++ b/scripts/reactions/getOnBus.sqf @@ -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 } ]; -}; -