mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Update fn_SpawnNonPersistentVehicle.sqf
Make sure area to spawn vehicle is clear
This commit is contained in:
parent
6d45755efc
commit
14f156330a
@ -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