Conflicts:
	@ExileServer/addons/a3_dms/fn_DMS_preInit.sqf
This commit is contained in:
eraser1 2015-09-01 18:26:18 -05:00
commit a6db45a673
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
/*
Spawn a non-saved vehicle in Exile
_exampleVeh = ['Exile_Chopper_Hummingbird_Green',_pos] call DMS_SpawnNonPersistentVehicle;
Created by Zupa
*/
private ["_vehicleClass","_position","_vehpos","_maxDistance","_vehObj"];
_vehicleClass = _this select 0;
_position = _this select 1;
_vehpos = [];
_maxDistance = 40;
while{count _vehpos < 1} do {
_vehpos = _position findEmptyPosition[20,_maxDistance,_vehicleClass];
_maxDistance = (_maxDistance + 15);
};
_vehObj = ObjNull;
_vehObj = [_vehicleClass, _vehpos, (random 360), true] call ExileServer_object_vehicle_createNonPersistentVehicle;
_vehObj

Binary file not shown.