Hello Mavr,
you only need unitplatoons to make the AI using your custom units.
You can use Nomads as example.
Here is the AIR platoon file for nomads:
https://github.com/FAForever/nomads/blo ... plates.luaIn line 129 starts the table for air scout units as example:
https://github.com/FAForever/nomads/blo ... s.lua#L129Nomads is added simply as 5. table.
In case you want your own air scout unit used from the AI simply add it to the table.
If you new Faction has the name "Marver" and your airscout has the unitID "ABC1234" then you need to add this table:
- Code: Select all
Marver = {
{ 'abc1234', 1, 1, 'scout', 'GrowthFormation' }
},
Now if the AI plays the faction Marver and it want to build an Air scout it will know that your air scout has the unitID ABC1234 and will build it.
Thats all