2015-07-24 14:16:25 +00:00
|
|
|
/*
|
|
|
|
Shipping Containter Event
|
|
|
|
by Aaron Clark - EpochMod.com
|
2017-02-28 18:33:58 +00:00
|
|
|
|
2015-07-24 14:16:25 +00:00
|
|
|
Improvements and or bugfixes and other contributions are welcome via the github:
|
2016-06-13 16:54:19 +00:00
|
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server_settings/EpochEvents/ContainterSpawner.sqf
|
2015-07-24 14:16:25 +00:00
|
|
|
*/
|
2017-05-02 12:35:38 +00:00
|
|
|
//[[[cog import generate_private_arrays ]]]
|
|
|
|
private ["_cargoPosition","_item","_marker"];
|
|
|
|
//[[[end]]]
|
2015-06-04 14:11:41 +00:00
|
|
|
_cargoPosition = [epoch_centerMarkerPosition, 0, EPOCH_dynamicVehicleArea, 10, 0, 4000, 1] call BIS_fnc_findSafePos;
|
|
|
|
if ((count _cargoPosition) == 2) then{
|
|
|
|
_item = createVehicle["Cargo_Container", _cargoPosition, [], 0.0, "CAN_COLLIDE"];
|
|
|
|
if (EPOCH_showShippingContainers) then{
|
|
|
|
_marker = createMarker[str(_cargoPosition), _cargoPosition];
|
|
|
|
_marker setMarkerShape "ICON";
|
|
|
|
_marker setMarkerType "mil_dot";
|
|
|
|
// _marker setMarkerText "Container";
|
|
|
|
_marker setMarkerColor "ColorOrange";
|
|
|
|
};
|
2015-07-24 14:16:25 +00:00
|
|
|
};
|