Skip to content

Commit

Permalink
fixed error with wrongly named variables or undefined variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Crowdedlight committed May 3, 2024
1 parent f3768ef commit 307e136
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ if !(_spawn_marker isEqualTo "") then {

if (_infOnly) then {
// Infantry units to choose from
private _infClasses = [KPLIB_o_inf_classes, KPLIB_o_militiaInfantry] select (KPLIB_enemyReadiness < 50);
private _infClasses = KPLIB_o_inf_classes;

// Adjust target size for infantry
_target_size = 12 max (_target_size * 4);
private _squadNumber = round (_target_size/8);

for "_i" from 1 to _squadNumber do {
// Create infantry groups with up to 8 units per squad
private _grp = createGroup [kplib_side_enemy, true];
private _grp = createGroup [GRLIB_side_enemy, true];
for "_i" from 0 to 7 do {
[selectRandom _infClasses, markerPos _spawn_marker, _grp] call KPLIB_fnc_createManagedUnit;
};
Expand Down

0 comments on commit 307e136

Please sign in to comment.