special troops

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
inteletwiggy

special troops

Post 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)
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: special troops

Post by Teancum »

Yes, just add

PointsToUnlock = -1 (I think that's the right command)

to their odfs.
NullCommando
Jedi
Jedi
Posts: 1010
Joined: Sat Dec 01, 2007 12:29 pm
Games I'm Playing :: Destiny
xbox live or psn: NullCommando
Location: Earth

Re: special troops

Post by NullCommando »

Or just set it to "0" or delete the line.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: special troops

Post by Teancum »

I'm gonna get technical on you for a sec, NullCommando. :runaway:

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. :thumbs:
User avatar
Eagle Eye
First Lance Corporal
First Lance Corporal
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Belgium
Contact:

Re: special troops

Post 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 :wink:
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

Post by Caleb1117 »

I just delete the line. Whatever works. :P
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: special troops

Post by [RDH]Zerted »

You can just SetClassProperty() in the lua to skip the side mod.
Post Reply