From a60d21cb437c5c2f930032b3d7c9203973be4129 Mon Sep 17 00:00:00 2001 From: SilenceIsFatto <78276788+SilenceIsFatto@users.noreply.github.com> Date: Sat, 27 Jul 2024 16:10:52 +0100 Subject: [PATCH] Attack on return --- .../functions/REINF/fn_invaderComeback.sqf | 18 +++++++++++++++++- .../functions/REINF/fn_simpleAttack.sqf | 8 ++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/A3A/addons/ultimate/functions/REINF/fn_invaderComeback.sqf b/A3A/addons/ultimate/functions/REINF/fn_invaderComeback.sqf index 7d2a8d1966..9fb45b6ea8 100644 --- a/A3A/addons/ultimate/functions/REINF/fn_invaderComeback.sqf +++ b/A3A/addons/ultimate/functions/REINF/fn_invaderComeback.sqf @@ -1 +1,17 @@ -["emergence"] call A3U_fnc_setInvaderState; \ No newline at end of file +["emergence"] call A3U_fnc_setInvaderState; + +private _attackCount = 0; +private _attackAmount = 2; + +for "_i" from 0 to _attackAmount do { + [Invaders] spawn A3A_fnc_chooseAttack; + _attackCount = _attackCount + 1; + + // Wait 5 minutes before choosing another attack + uiSleep 300; +}; + +// waitUntil {sleep 30; _attackCount >= _attackAmount}; + +// private _possibleTargets = airportsX + outposts + seaports + factories + resourcesX + milbases; +// _possibleTargets = _possibleTargets select {sidesX getVariable [_x,sideUnknown] == teamPlayer}; \ No newline at end of file diff --git a/A3A/addons/ultimate/functions/REINF/fn_simpleAttack.sqf b/A3A/addons/ultimate/functions/REINF/fn_simpleAttack.sqf index 538d7ac5ee..aab7659a7e 100644 --- a/A3A/addons/ultimate/functions/REINF/fn_simpleAttack.sqf +++ b/A3A/addons/ultimate/functions/REINF/fn_simpleAttack.sqf @@ -1,11 +1,11 @@ params [ - ["_side", Invaders], - ["_origin", "CSAT_carrier"], ["_target", ""], - ["_pool", "attack"], ["_vehCount", 5], - ["_delay", 5], + ["_origin", "CSAT_carrier"], ["_modifiers", ["specops"]] + ["_delay", 30], + ["_side", Invaders], + ["_pool", "attack"], ]; private _data = [