special troops
Moderator: Moderators
-
inteletwiggy
special troops
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)
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: special troops
Yes, just add
PointsToUnlock = -1 (I think that's the right command)
to their odfs.
PointsToUnlock = -1 (I think that's the right command)
to their odfs.
-
NullCommando
- Jedi

- Posts: 1010
- Joined: Sat Dec 01, 2007 12:29 pm
- xbox live or psn: NullCommando
- Location: Earth
Re: special troops
Or just set it to "0" or delete the line.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: special troops
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.
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.
- Eagle Eye
- First Lance Corporal

- Posts: 129
- Joined: Thu Nov 01, 2007 12:44 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Belgium
- Contact:
Re: special troops
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 
-
Caleb1117
- 2008 Most Original Avatar
- Posts: 3096
- Joined: Sun Aug 20, 2006 5:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: X-Fire: caleb1117 ಠ_ಠ
Re: special troops
I just delete the line. Whatever works. 
- [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:
Re: special troops
You can just SetClassProperty() in the lua to skip the side mod.
