Command posts and factions

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
froshthewookie

Command posts and factions

Post by froshthewookie »

I have some command posts for my 3rd faction... Is there a way to change which faction controls them in the script? I want to keep them as the 3rd faction in my conquest mode, but would like them to be used for teams 1 & 2 in some other game modes?

Or would I just have to make a new layer with new CPs?
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: Command posts and factions

Post by [RDH]Zerted »

I believe CPs are objects and entities. If they are, you could use SetProperty( name or entity, property, value ). ex: SetProperty( "cp1", "Team", 3 )

Here is a game example: SetProperty ("Library_CP","Team", ATT)
froshthewookie

RE: Command posts and factions

Post by froshthewookie »

Thanks... I'm going to try that out...
Post Reply