Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!isServer) exitWith {
- private ["_trigger","_townmarker", "_thisTrigger"];
- _trigger = _this select 0;
- _townmarker = _this select 1;
- _thistrigger = _this select 2;
- //sleep 5;
- scopeName "main";
- //_eastunits = east countSide allUnits;
- _eastunits = east countSide list _thistrigger;
- if (_eastunits < 2) then {
- _spawnedUnits = 0;
- //while { _eastunits < 20 } do
- for "_i" from 1 to 15 do
- {
- /* Feindgruppe */
- _unitPool= ["CUP_O_TK_INS_Mechanic", "CUP_O_TK_INS_Mechanic", "CUP_O_TK_INS_Commander", "CUP_O_TK_INS_Soldier_TL", "CUP_O_TK_INS_Sniper", "CUP_O_TK_INS_Soldier_AT", "CUP_O_TK_INS_Soldier_AAT" , "CUP_O_TK_INS_Soldier_Enfield", "CUP_O_TK_INS_Soldier_FNFAL" , "CUP_O_TK_INS_Soldier", "CUP_O_TK_INS_Soldier_GL" , "CUP_O_TK_INS_Mechanic", "CUP_O_TK_INS_Bomber", "CUP_O_TK_INS_Soldier_MG", "CUP_O_TK_INS_Guerilla_Medic", "CUP_O_TK_INS_Guerilla_Medic", "CUP_O_TK_INS_Soldier_AA"];
- _spawn = _unitPool call BIS_fnc_selectRandom;
- //_spawn = ["LOP_ISTS_Rifle_squad","LOP_ISTS_Support_section","LOP_ISTS_Patrol_section","LOP_ISTS_AT_section"] call BIS_fnc_selectRandom;
- //_patroldis = [300,450,600] call bis_fnc_selectrandom;
- //_position = [(getmarkerpos _townmarker), 100, 300, 10, 0, 20, 0] call BIS_fnc_findSafePos;
- //_position = [(getmarkerpos "marker5"), 100, 300, 10, 0, 20, 0] call BIS_fnc_findSafePos;
- //_position = [(getmarkerpos "marker5"), 200, 400, 10, 0, 20, 0] call BIS_fnc_findSafePos;
- _marker = ["marker_2", "marker_3", "marker_4", "marker_5", "marker_6", "marker_7", "marker_8", "marker_9", "marker_10"] call BIS_fnc_selectRandom;
- _position = [getmarkerpos _marker, 1, 15, 3, 0, 20, 0] call BIS_fnc_findSafePos;
- //_wpSpeed = ["NORMAL","FULL","LIMITED"] call BIS_fnc_selectRandom;
- _wpSpeed = "FULL";
- _mode =["AWARE","COMBAT"] call BIS_fnc_selectRandom;
- //_groupname = [_position, east, (configfile >> "CfgGroups" >> "Indep" >> "LOP_ISTS" >> "Infantry" >> _spawn)] call BIS_fnc_spawnGroup;
- //_groupname = [_position, east, ["CUP_O_TK_INS_Soldier_AT","CUP_O_TK_INS_Soldier_AAT","CUP_O_TK_INS_Soldier_AT","CUP_O_TK_INS_Soldier_AAT"], [[0,0,0],[1,0,0],[0,0,0],[1,0,0]],["Captain", "Private","Captain", "Private"]] call BIS_fnc_spawnGroup;
- _groupname = [_position, east, [_spawn]] call BIS_fnc_spawnGroup;
- {
- _x setSkill ["general",0.25];
- _x setSkill ["aimingAccuracy",0.2];
- _x setSkill ["aimingShake",0.3];
- _x setSkill ["aimingSpeed",0.8];
- _x setSkill ["endurance",0.5];
- _x setSkill ["spotDistance",0.7];
- _x setSkill ["spotTime",0.7];
- _x setSkill ["courage",1];
- _x setSkill ["reloadspeed",0.5];
- _x setSkill ["commanding",1];
- } forEach units _groupname;
- _groupname allowFleeing 0;
- _groupname deleteGroupWhenEmpty true;
- _wp1 = _groupname addWaypoint [(getmarkerpos _townmarker), 0];
- //_wp1 = _groupname addWaypoint [(getmarkerpos "marker5"), 0];
- _wp1 setWaypointType "MOVE";
- _wp1 setWaypointSpeed _wpSpeed;
- _wp1 setWaypointBehaviour _mode;
- //[_groupname,(getmarkerpos _townmarker), _patroldis] call BIS_fnc_taskPatrol;
- //[_groupname,(getmarkerpos "marker5"), _patroldis] call BIS_fnc_taskPatrol;
- //_eastunits = EAST countSide allUnits;
- _eastunits = east countSide list _thistrigger;
- _spawnedUnits = _spawnedUnits + 1;
- //if (_eastunits > 50) then {breakTo "main"}
- if (_eastunits > 10) then {breakTo "main"}
- };
- hint format ["%1 enemies approaching", _spawnedUnits];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement