Change name of side through LUA?
Moderator: Moderators
-
- Lieutenant Colonel
- Posts: 545
- Joined: Mon Jul 04, 2016 10:56 pm
- Location: My other account
- Contact:
Change name of side through LUA?
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?
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
- Teancum
- Jedi Admin
- Posts: 11079
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Change name of side through LUA?
SetTeamName([team], [new name]) works like that. [team] can be the identifier (IMP, REP, etc) or the team number.
SetTeamName (3, "ewoks")
SetTeamName (3, "ewoks")
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Change name of side through LUA?
Will that change the team's displayed name though? :OTeancum wrote:SetTeamName([team], [new name]) works like that. [team] can be the identifier (IMP, REP, etc) or the team number.
SetTeamName (3, "ewoks")
- Teancum
- Jedi Admin
- Posts: 11079
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Change name of side through LUA?
Yep, take a look at kas2_hunt.lua
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: Change name of side through LUA?
This saves a bunch of time instead of localization! Thanks Teancum