Change name of side through LUA?

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
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Change name of side through LUA?

Post by SkinnyODST »

So you`ve got "CIS" and "Republic" as the chooseable sides in a map, and you want to change the name of one of those sides to something else. You can do so by changing it in the editlocalise.bat, but what about doing it through the LUA so the name change is only on certain maps? Is this possible?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Change name of side through LUA?

Post by Marth8880 »

no
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11079
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: Change name of side through LUA?

Post by Teancum »

SetTeamName([team], [new name]) works like that. [team] can be the identifier (IMP, REP, etc) or the team number.

SetTeamName (3, "ewoks")
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Change name of side through LUA?

Post by Marth8880 »

Teancum wrote:SetTeamName([team], [new name]) works like that. [team] can be the identifier (IMP, REP, etc) or the team number.

SetTeamName (3, "ewoks")
Will that change the team's displayed name though? :O
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11079
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: Change name of side through LUA?

Post by Teancum »

Yep, take a look at kas2_hunt.lua
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Change name of side through LUA?

Post by LitFam »

This saves a bunch of time instead of localization! Thanks Teancum :angel:
Post Reply