Display the name of the last player KO in a UI verse

Hello everyone

I’ve been trying for several hours to display the username of the last player KO in a canvas UI for an admin menu on my map, but I can’t get the username to display; it just shows “player”. Could someone please help me?

Thank you very much.

Hi! What you need is a helper function and call it, to localize the “Player/Agent” and retrieve its name.

using { /Verse.org/Simulation }
AgentToMessage<localizes>(Agent:agent):message= { "{Agent}" }#convert agent to a message if its a player it will show the player name if streamer mode is not active.
AgentToMessage<localizes>(Agent:agent,Prefix:string,Suffix:string):message= {"{Prefix}{Agent}{Suffix}"}#same but can add a prefix and suffix to the message.