Changing players name tag overhead?
Discussion in 'Rust Development' started by Rusty, Sep 14, 2016.
-
You needfirst to add a Fieldinfo varaible with this:
'
then you can change it by this for example:Code:using System.Reflection; ... FieldInfo displayName = typeof(BasePlayer).GetField("_displayName", (BindingFlags.Instance | BindingFlags.NonPublic));
Code:displayName.SetValue(player, "...new name..."); player.SendNetworkUpdate();
-
Wulf Community Admin
That would handle the chat name, but not sure if it would handle the overhead name for players' already in viewing distance of it. I remember before that you would have to re-create the player's entity or something like that. -
Yea i need over head tag ... found this: Gyazo - 8a6b8aa72a5c420024eb7e348fbc4ab9.png but unsure how to go about it
-
Yep, it works not instant...it works mostly for others on transform changes (like teleports), login/logoff,respwan and few other events.
-
Ok will give that a shot
-
not possible...the PlayerNameTag exists only clientside.
-
Try damaging the player after you change his name. Work's for me.
