Files
OpenRA/mods/common/lua
Oliver Brakmann ca786f6039 Add Production.BuildTeamFromTemplate
Production.BuildTeamFromTemplate allows the production of teams from a
list of
actor types, assigning a function to that team once it is complete.

A 'template' in this case looks like this:
template = { {factory, {list of units to build using aforementioned factory}} }
e.g. template = { {barracks, {"e1", "e1", "e1", "e3", "e3"}} }

You can also build teams using multiple factories like this:
template = { {barracks, {"e3", "e3", "e3"}}, {war_factory, {"3tnk", "3tnk"}} }

Before using Production.BTFT you need to call
Production.EventHandlers.Setup once.
2014-03-21 23:22:01 +01:00
..
2013-12-19 19:26:58 +13:00
2014-03-17 22:20:04 +01:00