Skip to content

Commit

Permalink
Select unitCount from unitCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
theace0296 committed Sep 23, 2021
1 parent 626ec69 commit 9d89652
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RandFramework/Server/units/fn_radiusPatrol.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
params ["_sidePos","_distFromCent", "_unitCounts","_IncludTeamLeader",["_InsurgentSide", EAST]];
format["%1 called by %2 on %3", _fnc_scriptName, _fnc_scriptNameParent, (["Client", "Server"] select isServer)] call TRGM_GLOBAL_fnc_log;

private _unitCount = selectRandom _unitCounts;
private _group = createGroup _InsurgentSide;
private _wayX = (_sidePos select 0);
private _wayY = (_sidePos select 1);
Expand Down Expand Up @@ -60,8 +61,8 @@ while {surfaceIsWater _wp4bPos} do {

//Spawn in units

_iCount = 0; //_unitCounts
while {_iCount <= _unitCounts} do
_iCount = 0; //_unitCount
while {_iCount <= _unitCount} do
{
[_wayX,_wayY,_group,_iCount,_IncludTeamLeader] call TRGM_SERVER_fnc_spawnPatrolUnit;
_iCount = _iCount + 1;
Expand Down

0 comments on commit 9d89652

Please sign in to comment.