2015-07-24 14:16:25 +00:00
|
|
|
/*
|
|
|
|
Carnival Event
|
|
|
|
by Aaron Clark - EpochMod.com
|
|
|
|
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
|
|
|
|
http://creativecommons.org/licenses/by-nc-nd/4.0/
|
|
|
|
Improvements and or bugfixes and other contributions are welcome via the github:
|
|
|
|
https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_server_settings/EpochEvents/CarnivalSpawner.sqf
|
|
|
|
*/
|
|
|
|
|
2015-06-04 14:11:41 +00:00
|
|
|
_ferrisPosition = [epoch_centerMarkerPosition, 0, EPOCH_dynamicVehicleArea, 10, 0, 4000, 0] call BIS_fnc_findSafePos;
|
|
|
|
if ((count _ferrisPosition) == 2) then{
|
|
|
|
_item = createVehicle["ferrisWheel_EPOCH", _ferrisPosition, [], 0.0, "CAN_COLLIDE"];
|
|
|
|
|
|
|
|
{
|
|
|
|
_item = createVehicle[_x, _ferrisPosition, [], 80, "NONE"];
|
|
|
|
sleep 1;
|
|
|
|
} forEach["Carnival_Tent", "Land_Slide_F", "Carnival_Tent", "Land_Carousel_01_F", "Carnival_Tent", "Carnival_Tent"];
|
|
|
|
|
|
|
|
if (EPOCH_showShippingContainers) then{
|
|
|
|
_marker = createMarker[str(_ferrisPosition), _ferrisPosition];
|
|
|
|
_marker setMarkerShape "ICON";
|
|
|
|
_marker setMarkerType "mil_dot";
|
|
|
|
// _marker setMarkerText "Ferris";
|
|
|
|
_marker setMarkerColor "ColorOrange";
|
|
|
|
};
|
2015-07-24 14:16:25 +00:00
|
|
|
};
|