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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login