Skip to content

Commit

Permalink
Attack on return
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenceIsFatto committed Jul 27, 2024
1 parent d59511b commit a60d21c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
18 changes: 17 additions & 1 deletion A3A/addons/ultimate/functions/REINF/fn_invaderComeback.sqf
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
["emergence"] call A3U_fnc_setInvaderState;
["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};
8 changes: 4 additions & 4 deletions A3A/addons/ultimate/functions/REINF/fn_simpleAttack.sqf
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down

0 comments on commit a60d21c

Please sign in to comment.