Forged Alliance Forever Forged Alliance Forever Forums 2016-03-25T15:46:07+02:00 /feed.php?f=45&t=12082 2016-03-25T15:46:07+02:00 2016-03-25T15:46:07+02:00 /viewtopic.php?t=12082&p=123710#p123710 <![CDATA[Re: Coop: Mixed unit patrols]]>
Possible combinations can be found in
Code:
lua\AI\OpAI\AirAttacks_save.lua


All available combinations are in PlatoonBuilders of ARMY_1, then look like this:
Code:
['OSB_Child_AirAttacks_T1Platoon1'] =  {
    PlatoonTemplate = 'OST_AirAttacks_T1Platoon1',
    Priority = 693,
    InstanceCount = 3,
    LocationType = 'MAIN',
    PlatoonType = 'Air',
    RequiresConstruction = true,
    PlatoonAIFunction = {'/lua/ScenarioPlatoonAI.lua', 'DefaultOSBasePatrol',
        {'default_platoon'},
        {'default_platoon'}
    },
    BuildConditions = {
        [0] = {'/lua/ai/opai/airattacks_editorfunctions.lua', 'AirAttackChildCountDifficulty',
            {'default_brain','default_master'},
            {'default_brain','default_master'}
        },
        [1] = {'/lua/editor/amplatoonhelperfunctions.lua', 'AMCheckPlatoonLock',
            {'default_brain','default_master'},
            {'default_brain','default_master'}
        },
    },
    PlatoonData = {
        {type = 5, name = 'AMPlatoons', value = {
            {type = 2, name = 'String_0',  value = 'OSB_Master_AirAttacks'},
            {type = 2, name = 'APPEND_PlatoonChild', value = 'OSB_Master_AirAttacks'},
        }},
    },
    ChildrenType = { 'Bombers', },
},

if there are more children in ChildrenType, then you cana use that combination. So after quick look I found that it's not there for inties and bombers. I guess I could try to add it and see what happens.


For mantis try 'HeavyBots'

Statistics: Posted by speed2 — 25 Mar 2016, 15:46


]]>
2016-03-24T22:25:17+02:00 2016-03-24T22:25:17+02:00 /viewtopic.php?t=12082&p=123649#p123649 <![CDATA[Coop: Mixed unit patrols]]>
I was trying to make a simple mission on Theta Passage, based on the FAF wiki and speed2's recent coop mission making video.

I want to make a mixed unit patrol of mantis and medusa.

    According to the FAF wiki the following line of code would produce something similar to what i want:
    Code:
    opai:SetChildQuantity({'Bombers', 'Interceptors'}, 8) - Platoon of 4 Bombers and 4 Interceptors


    The problem is using this line of code gives me 8 bombers and no interceptors.
    So i'm wondering if I'm doing something wrong or if the code doesn't work anymore due to recent coop changes?

Another problem I have is that I don't know the code to spawn Mantis while using this method.

    'LightTanks' doesn't seem to work and I can't find an appropriate equivalent in the FAF wiki.
    So it would be nice if someone could tell me what it actually should be, or even better were I can find this information.


I added my current progress in the description in case you need more information.

Statistics: Posted by KeyBlue — 24 Mar 2016, 22:25


]]>