1class ActionStopEngine: ActionSingleUseBase
3 void ActionStopEngine()
18 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
22 auto vehicle =
CarScript.Cast(vehCommand.GetTransport());
26 if (!vehicle.EngineIsOn())
29 if (vehicle.GetSpeedometerAbsolute() > 8)
32 return vehicle.CrewDriver() == player;
35 override void OnExecute(
ActionData action_data)
37 HumanCommandVehicle vehCommand = action_data.m_Player.GetCommand_Vehicle();
41 auto vehicle =
CarScript.Cast(vehCommand.GetTransport());
45 if (vehicle.GetNetworkMoveStrategy() == NetworkMoveStrategy.PHYSICS)