Support #15706

Ai Squad Setup

Added by fREAk over 4 years ago. Updated almost 4 years ago.

Status:Closed Start date:12/08/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:Expired
Affected Version: I am using some Mods:No
Affected ArmA II version:Please select... Reproducible for you:No

Description

Heyho Benny,

Currently i try set up an Ai Squad with an Mi-24 and Infantrymen.
My problem is, how should a Squad be configured, to make it buying
an Infantrymen if one died, and a Chopper if the Chopper is destroyed.
Currently the seem to buy whatever they want, for example he Bought another Mi
when 2 Infantrymen where killed, or infantry when the Pilot was dead (Chopper ok so far).
Same with Vehicles, that deploying Inf.
Sometimes they end up with 4 Mi-24 or 8 Infantrymen... How is that Array Handled
(or where can i look for the Algorithm) ...

I've tried:

_u =        ["Mi24_D"];
_u = _u + ["MVD_Soldier_GL"];
_u = _u + ["MVD_Soldier_AT"];
_u = _u + ["MVD_Soldier_MG"];
_u = _u + ["MVD_Soldier_Marksman"];
_u = _u + ["MVD_Soldier_AT"];
_u = _u + ["MVD_Soldier_MG"];
_u = _u + ["MVD_Soldier_MG"];
_u = _u + ["MVD_Soldier_AT"];
_f = [true,false,false,true];
_l = [2,0,0,1];

and

_u =        ["Mi24_D"];
_u = _u + ["MVD_Soldier_TL"];
_u = _u + ["MVD_Soldier_AT"];
_u = _u + ["MVD_Soldier_MG"];
_u = _u + ["MVD_Soldier_Marksman"];
_u = _u + ["MVD_Soldier_AT"];
_u = _u + ["MVD_Soldier_MG"];
_u = _u + ["MVD_Soldier_MG"];
_u = _u + ["MVD_Soldier_AT"];
_f = [true,false,false,true];
_l = [2,0,0,1];

and

_u =        ["MVD_Soldier_TL"];
_u = _u + ["MVD_Soldier_TL"];
_u = _u + ["MVD_Soldier_AT"];
_u = _u + ["MVD_Soldier_MG"];
_u = _u + ["MVD_Soldier_Marksman"];
_u = _u + ["MVD_Soldier_AT"];
_u = _u + ["Mi24_D"];
_f = [true,false,false,true];
_l = [2,0,0,1];

The Server is set to an Ai-Teamsize of 8.
Can you help me out of my Confusion? I dont find any regularity
in the AIs Buy-Behavior ...

Thank you and best regards,

fREAk

History

Updated by Benny over 4 years ago

  • Status changed from New to Feedback

The easiest part is to include an infantry / vehicle percentage check before the purchase.

Something like that can be used, you can also use a switch case to differenciate differents types

if (_type isKindOf 'Man') then {_man = man + 1} else {vehicle = vehicle + 1};

You do a percent check of each type.

The only counterpart you'll find is the impact on the server CPU.

Updated by MrNiceGuy almost 4 years ago

  • Target version set to Expired
  • I am using some Mods set to No
  • Reproducible for you set to No

Updated by MrNiceGuy almost 4 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF