mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Merge pull request #72 from MGTDB/patch-7
Update fn_SpawnNonPersistentVehicle.sqf
This commit is contained in:
commit
c523a82cd1
@ -43,6 +43,10 @@ if !(isClass (configFile >> "CfgVehicles" >> _vehicleClass)) exitWith
|
||||
objNull
|
||||
};
|
||||
|
||||
//make sure area to spawn vehicle is clear
|
||||
_objs = nearestTerrainObjects [_position, ["TREE","BUSH","SMALL TREE","ROCK","ROCKS","FENCE","WALL"], 50];
|
||||
{ _x hideObjectGlobal true; } forEach _objs;
|
||||
|
||||
private _vehObj = createVehicle [_vehicleClass, _position, [], 0, "NONE"];
|
||||
|
||||
clearWeaponCargoGlobal _vehObj;
|
||||
|
Loading…
Reference in New Issue
Block a user