mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
19 lines
620 B
Plaintext
19 lines
620 B
Plaintext
private ["_position","_veh","_istoomany"];
|
|
|
|
waitUntil {!isNil "BIS_fnc_selectRandom"};
|
|
_position = roadList call BIS_fnc_selectRandom;
|
|
_position = _position modelToWorld [0,0,0];
|
|
|
|
waitUntil {!isNil "BIS_fnc_findSafePos"};
|
|
_position = [_position,5,20,5,0,2000,0] call BIS_fnc_findSafePos;
|
|
|
|
if ((count _position) == 2) then {
|
|
_istoomany = _position nearObjects ["All",5];
|
|
if ((count _istoomany) > 0) exitWith {};
|
|
|
|
_veh = createVehicle ["Supply_Crate_DZE",_position, [], 0, "CAN_COLLIDE"];
|
|
_veh enableSimulation false;
|
|
_veh setDir round(random 360);
|
|
_veh setPos _position;
|
|
_veh setVariable ["ObjectID","1",true];
|
|
}; |