RE: Re: RE: Re: RE: How to add unit customization (in-game)
Posted: Tue Aug 21, 2007 2:00 pm
What if you made different units with every possibility covered.
So if a person with a pistol walked into region rifle their unit would be switched to unit with a rifle and a pistol.
So instead of adding something to the existing class it would switch you to a whole new unit with the proper weapons.
This method would probably include a 400 line long if-then or a huge switch statement (does stripped down BF2 LUA even have switch?)
But who cares it would be awesome if it worked!
So if a person with a pistol walked into region rifle their unit would be switched to unit with a rifle and a pistol.
So instead of adding something to the existing class it would switch you to a whole new unit with the proper weapons.
This method would probably include a 400 line long if-then or a huge switch statement (does stripped down BF2 LUA even have switch?)
But who cares it would be awesome if it worked!