Need help in coding
-
Guys can you give me some advice on what to add to this sample codes so that the ai will only build it when the player has only one land experimental built.
Sample:
opai = FortClarke:AddOpAI('UEF_Fatboy_1',
{
Amount = 2,
KeepAlive = true,
PlatoonAIFunction = {SPAIFileName, 'PatrolThread'},
PlatoonData = {
PatrolChain = 'M4_UEF_LandAttack_Mid_Chain',
},
MaxAssist = 8,
Retry = true,
}
) -
opai = FortClarke:AddOpAI('UEF_Fatboy_1', { Amount = 2, KeepAlive = true, PlatoonAIFunction = {SPAIFileName, 'PatrolThread'}, PlatoonData = { PatrolChain = 'M4_UEF_LandAttack_Mid_Chain', }, MaxAssist = 8, Retry = true, BuildCondition = { {'/lua/editor/otherarmyunitcountbuildconditions.lua', 'BrainsCompareNumCategory', {{'HumanPlayers'}, 1, categories.EXPERIMENTAL, '>='}}, } } )
-
Thank you very much sir. Well appreciated.