1. Is there a way to change a player above head name on the fly?

    Thanks
     
  2. You needfirst to add a Fieldinfo varaible with this:
    '
    Code:
    using System.Reflection;
    ...
    FieldInfo displayName = typeof(BasePlayer).GetField("_displayName", (BindingFlags.Instance | BindingFlags.NonPublic));
    then you can change it by this for example:

    Code:
    displayName.SetValue(player, "...new name...");
    player.SendNetworkUpdate();
     
  3. Wulf

    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.
     
  4. Yep, it works not instant...it works mostly for others on transform changes (like teleports), login/logoff,respwan and few other events.
     
  5. Ok will give that a shot
     
  6. Try damaging the player after you change his name. Work's for me.