Page 1 of 1

How many units...?

Posted: Tue Jun 12, 2007 6:46 am
by Guest
How to add more than 8 unit slots to the map. I've added 9th slot but map crashes. I know that on Mos Eisley Hero Assault there's 9 slots, but LUA has different SetupTeams structure. Any help?

Posted: Tue Jun 12, 2007 9:48 am
by MercuryNoodles
There are only 8 slots programmed into the game. These are pilot, marine, soldier, assault, sniper, engineer, officer, and special. However, you can use this:

AddUnitClass(3letterside, "unit_odf",min#,max#)

This can be used multiple times, but I must warn that space on the screen is limited, even if the actual line usage may not be. The more classes you use, the smaller the classes' description box becomes, and I think the bottom class(es) might get kicked off the screen if you add too many.

Posted: Tue Jun 12, 2007 8:02 pm
by [RDH]Zerted
If you want to add your extra units like all the other units, just edit your data_XXX\Common\scripts\SetupTeams.lua and add a few more entries to typeList. There is a limit to the amount of units which can be displayed on the selection screen. I tried to change it, but the .exe controls too much in that section. Too many units will also crash the game, but I can never remember what those max values are.

Posted: Wed Jun 13, 2007 1:59 am
by Guest
[RDH]Zerted

so, I added +2 new units (total 8). Today I added 9th unit...map crahsed... :O
I hate this limit! :x

problem solved. thx for help :)