Changing overhead name tag?
Discussion in 'Rust Development' started by Quenn1599, Feb 2, 2016.
-
I might be wrong, but i think player.displayName is read and write.
-
Wulf Community Admin
You'd have to change the player name, then somehow force their entity to respawn or they'd need to reconnect I believe.
-
Calytic Community Admin Community Mod
You can use reflection to access/mutate "_displayName". "displayName" without the underscore is not a variable but a property that exposes the private variable _displayName. Because it's private, your only choice is to use reflection. A quick search on google should give you everything you need to do this.
