[GS] [Lua] Changing a Player's Name ingame?

__jack__

Warlord
Joined
Dec 29, 2009
Messages
141
Hi,

I was wondering if someone found a PlayerConfigurations:SetPlayerName() equivalent ?
(this one doesn't exist)

I would like to change a player's name without having to manually change all the labels.

PlayerConfigurations:SetHotseatName(text) doesn't work outside of Hotseats.
 
Using this spreadsheet (https://docs.google.com/spreadsheet...D_xTTld4sFEyMxrDoPwX2NUFc/edit#gid=1205978888) as a reference, these are the things I found that might be relevant, but I don't know Lua script, so I am not sure what you can do with them.


GetLeaderName
SetLeaderName


GetPlayerName
(But not SetPlayerName)

GetTeamName
(But not SetTeamName)

SetHotseatName
(but very oddly, not GetHotseatName)

I hope that proves helpful!
 
Options.SetUserOption("Multiplayer", "LANPlayerName", string) works but only at HostGame Stage. (i.e. it would affect the next game)

I ll try SetLeaderName(), since Players are picking up the Leader names on disconnect maybe that would do the trick.
 
Top Bottom