Page 1 of 1

Change name of side through LUA?

Posted: Mon Jan 22, 2018 10:32 pm
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?

Re: Change name of side through LUA?

Posted: Mon Jan 22, 2018 11:10 pm
by Marth8880
no

Re: Change name of side through LUA?

Posted: Mon Jan 22, 2018 11:28 pm
by Teancum
SetTeamName([team], [new name]) works like that. [team] can be the identifier (IMP, REP, etc) or the team number.

SetTeamName (3, "ewoks")

Re: Change name of side through LUA?

Posted: Wed Jan 24, 2018 6:47 pm
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

Re: Change name of side through LUA?

Posted: Wed Jan 24, 2018 9:04 pm
by Teancum
Yep, take a look at kas2_hunt.lua

Re: Change name of side through LUA?

Posted: Wed Jan 24, 2018 10:34 pm
by LitFam
This saves a bunch of time instead of localization! Thanks Teancum :angel: