Page 1 of 1
special troops
Posted: Tue Feb 05, 2008 11:18 am
by inteletwiggy
how do I make it so that you can have the officer and special troops at the beginning of the level? (no points needed to unlock them)
Re: special troops
Posted: Tue Feb 05, 2008 12:31 pm
by Teancum
Yes, just add
PointsToUnlock = -1 (I think that's the right command)
to their odfs.
Re: special troops
Posted: Tue Feb 05, 2008 12:34 pm
by NullCommando
Or just set it to "0" or delete the line.
Re: special troops
Posted: Tue Feb 05, 2008 12:42 pm
by Teancum
I'm gonna get technical on you for a sec, NullCommando.
Typically you want to use -1. -1 means it will accept any value as the unlock value. So if you had 0 points or 100 points it would still unlock. That being said, 0 should work, but crazy things happen. I've jumped on a laggy MP server and somehow got 4 points before I even spawned. Since the game already gave me four, those units might not unlock for me since it requires 0 to unlock.
Anyways, it usually doesn't happen. In fact it very rarely does. It's just better to use -1 in cases like that (not just in SWBF, but in most games) to let it accept any value.

Re: special troops
Posted: Tue Feb 05, 2008 12:44 pm
by Eagle Eye
and you have first to make a new side (with the files of the special trooper in it and change the lua to), cause u dont may change things in the assets

Re: special troops
Posted: Tue Feb 05, 2008 3:18 pm
by Caleb1117
I just delete the line. Whatever works.

Re: special troops
Posted: Tue Feb 05, 2008 6:11 pm
by [RDH]Zerted
You can just SetClassProperty() in the lua to skip the side mod.