5fa1bc18fd
Basically, a basic simulation manager is implemented and parseSimpleArray exhanged from call compile so database is faster. For issues PM me on discord or Exile forums.
22 lines
1019 B
Plaintext
22 lines
1019 B
Plaintext
/**
|
|
* 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 |