/** * ExileServer_object_vehicle_createNonPersistentVehicle * * Exile Mod * www.exilemod.com * © 2015 Exile Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ private["_className","_position","_direction","_usePositionATL","_vehicleObject"]; _className = _this select 0; _position = _this select 1; _direction = _this select 2; _usePositionATL = _this select 3; _vehicleObject = [_className, _position, _direction, _usePositionATL] call ExileServer_object_vehicle_carefulCreateVehicle; _vehicleObject setVariable ["ExileIsPersistent", false]; _vehicleObject addEventHandler ["GetIn", {_this call ExileServer_object_vehicle_event_onGetIn}]; _vehicleObject addMPEventHandler ["MPKilled", { if !(isServer) exitWith {}; _this call ExileServer_object_vehicle_event_onMPKilled;}]; _vehicleObject enableDynamicSimulation true; _vehicleObject