How many units...?
Moderator: Moderators
-
Guest
How many units...?
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?
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
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.
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.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
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.
-
Guest
