Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Zen_FrameworkFunctions\Zen_InitHeader.sqf"
- // <Your mission name here> by <your name here>
- // Version = <the date here>
- // Tested with ArmA 3 -- <version number>
- //
- //
- // Notes
- //
- // Add Patrols to town area
- // Add building patrols to town
- // Possibly add a road block on main road before the town
- // Add a last objective no extractions i would like the next mission to follow were the mission ends
- // Change editor based heli and use zens order insertion and use zens order fast rope
- // And weather to mission early morning with morning fog and leading to a bright sunny day
- // Add an enemy counter attack once the captives have been rescued
- //
- Zen_Print_All_Errors = true;
- Zen_Debug_Arguments = true;
- [] spawn
- {
- while {true} do
- {
- player setFatigue 0;
- sleep 0.1;
- };
- };
- #define AI_SKILL "infantry"
- enableSaving [false, false];
- Player creatediaryRecord["Diary", ["some text"]];
- // All clients stop executing here, do not delete this line
- _X11 = group X11;
- _allplayersArray = units _X11;
- 0 = [_allplayersArray] call Zen_AddGiveMagazine;
- 0 = [_allplayersArray] call Zen_AddRepackMagazines;
- 0 = [_allplayersArray] call Zen_TrackInfantry;
- {_x setMarkerAlpha 0;} forEach ["officer", "Captive", "Valley", "Valley_1, "RoadPatrol", "RoadPatrol_1", "Town"];
- if (!isServer) exitWith {};
- sleep 1;
- _ValleyPatrols = [];
- {
- _Valley_patrol = [];
- for "_i" from 0 to 2 do {
- _Valleygroup = [([_x] call Zen_FindGroundPosition), resistance, AI_SKILL, [4,8]] call Zen_SpawnInfantry;
- 0 = [_Valley_patrol, _Valleygroup] call Zen_ArrayAppend;
- };
- 0 = [_ValleyPatrols, _Valley_patrol] call Zen_ArrayAppendNested;
- 0 = [_Valley_patrol, _x, [], 0, "limited", "safe"] spawn Zen_OrderInfantryPatrol;
- 0 = [_Valley_patrol, ["Team Leader", "rifleman", "grenadier", "Auto Rifleman", "Assistant AR", "Medic"]] call Zen_GiveLoadoutIndfor;
- } forEach ["Valley", "Valley_1"];
- _RoadPatrols = [];
- {
- _Road_patrol = [];
- for "_i" from 0 to 1 do {
- _Roadgroup = [([_x,0,0,1,[2,0]] call Zen_FindGroundPosition), resistance, AI_SKILL, [2,4]] call Zen_SpawnInfantry;
- 0 = [_Road_patrol, _Roadgroup] call Zen_ArrayAppend;
- };
- 0 = [_RoadPatrols, _Road_patrol] call Zen_ArrayAppendNested;
- 0 = [_Road_patrol, _x, [], 0, "limited", "safe"] spawn Zen_OrderInfantryPatrol;
- 0 = [_Road_patrol, ["Team Leader", "rifleman", "grenadier", "Auto Rifleman", "Assistant AR", "Medic"]] call Zen_GiveLoadoutIndfor;
- } forEach ["RoadPatrol", "RoadPatrol_1"];
- _returnArray = [(_RoadPatrols + _ValleyPatrols), "group"] call Zen_TrackInfantry;
- _OfficerPos = ["officer"] call Zen_FindGroundPosition;
- _OfficerObjective = [_OfficerPos, (group X11), resistance, "Officer","eliminate"] call Zen_CreateObjective;
- _warlord = (_OfficerObjective select 0) select 0;
- _innerGuardsGroupArray = [];
- _outerGuardsGroupArray = [];
- for "_i" from 0 to 1 do {
- _innerPos = [_OfficerPos, [10,70]] call Zen_FindGroundPosition;
- _innerGuard = [_innerPos, resistance, AI_SKILL, [2,3]] call Zen_SpawnInfantry;
- _innerGuardsGroupArray set [(count _innerGuardsGroupArray), _InnerGuard];
- };
- 0 = [_innerGuardsGroupArray, _OfficerPos, [10,70]] spawn Zen_OrderInfantryPatrol;
- for [{_i=0}, {_i<4}, {_i=_i+1}] do {
- _outerPos = [_OfficerPos, [130,220]] call Zen_FindGroundPosition;
- _outerGuard = [_outerPos, resistance, AI_SKILL, [4,6]] call Zen_SpawnInfantry;
- _outerGuardsGroupArray set [(count _outerGuardsGroupArray), _outerGuard];
- };
- 0 = [_outerGuardsGroupArray, _OfficerPos, [130,220]] spawn Zen_OrderInfantryPatrol;
- _returnArray = [(_innerGuardsGroupArray + _outerGuardsGroupArray), "group"] call Zen_TrackInfantry;
- waituntil { sleep 2; !(alive _warlord) };
- _taskIntel = [_X11, "Get to the warlord's body and take the intel.", "Secure Intel", _warlord] call Zen_InvokeTask;
- ZEN_FMW_Code_WaitDistanceLess(X11, _warlord, 2)
- sleep 2;
- 0 = [_taskIntel, "succeeded"] call Zen_UpdateTask;
- _captivePos = ["Captive"] call Zen_FindGroundPosition;
- _captiveObjective = [_captivePos, (group X11), west, "custom", "rescue", ["B_Soldier_F", "B_Soldier_F"]] call Zen_CreateObjective;
- _CaptiveGroup = ["Captive", ["I_soldier_F", "I_Soldier_GL_F"]] call Zen_SpawnGroup;
- waitUntil {
- sleep 2;
- ([(_captiveObjective select 1)] call Zen_AreTasksComplete)
- };
- endMission "end1";
Add Comment
Please, Sign In to add comment