29 lines
645 B
Plaintext
29 lines
645 B
Plaintext
waitUntil { !isNil "GRLIB_all_fobs" };
|
|
waitUntil { !isNil "blufor_sectors" };
|
|
|
|
sleep 5;
|
|
|
|
attack_in_progress = false;
|
|
|
|
while { GRLIB_endgame == 0 } do {
|
|
|
|
{
|
|
_ownership = [ markerpos _x ] call KPLIB_fnc_getSectorOwnership;
|
|
if ( _ownership == GRLIB_side_enemy ) then {
|
|
[ _x ] call attack_in_progress_sector;
|
|
};
|
|
sleep 0.5;
|
|
} foreach blufor_sectors;
|
|
|
|
{
|
|
_ownership = [ _x ] call KPLIB_fnc_getSectorOwnership;
|
|
if ( _ownership == GRLIB_side_enemy ) then {
|
|
[ _x ] call attack_in_progress_fob;
|
|
};
|
|
sleep 0.5;
|
|
} foreach GRLIB_all_fobs;
|
|
|
|
sleep 1;
|
|
|
|
};
|