View difference between Paste ID: UT4710v3 and n9MRTzhy
SHOW: | | - or go back to the newest paste.
1
waitUntil{(mission_AI_controller)};
2
3
if ("spawn_ai" in usedPlugins) then { waitUntil{(!isNil "BRM_SpawnAI_fnc_infantry")};
4
5
_objectives = [
6-
	["castle1", "castle2", "castle3"],
6+
	[castlerein, "castle1", "castle2", "castle3"],
7-
	["strela", "strela_2", "strela_3"],
7+
	[strelarein, "strela", "strela_2", "strela_3"],
8-
	["okez", "okez_2", "okez_3"],
8+
	[okezrein, "okez", "okez_2", "okez_3"],
9-
	["fcp", "fcp_1", "fcp_1"];
9+
	[fcprein, "fcp", "fcp_1", "fcp_1"];
10
];
11
12-
_mainObj = _objectives call BIS_fnc_selectRandom; // I forgot the actual function, look it up
12+
{
13
	[_x] spawn {
14-
[EAST, "VDV", 0, 2, 2, 0.7, "AWARE", "YELLOW", "PATROL", ["RHS_Mi8mt_vdv"], true, [_mainObj select 0], [_mainObj select 1], [_mainObj select 2], [200,100,50]] spawn BRM_SpawnAI_fnc_infantry;
14+
		_obj = this;
15
		
16-
};
16+
		waitUntil{(_obj select 0)};
17
		
18
		[EAST, "VDV", 0, 2, 2, 0.7, "AWARE", "YELLOW", "PATROL", ["RHS_Mi8mt_vdv"], true, [_obj select 1], [_obj select 2], [_obj select 3], [200,100,50]] spawn BRM_SpawnAI_fnc_infantry;				
19
	}	
20
} forEach _objectives;