Player name in hudmessage

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
Posts: 8
Joined: Tue May 31, 2022 2:05 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Czech Republic

Player name in hudmessage

Post by Mush256 »

I've been trying to show the player's name on a hudmessage without any luck. Is it possible? If yes, can someone help me with it?
User avatar
Posts: 1465
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Location: Russia

Re: Player name in hudmessage

Post by Player701 »

See GetCVarString (ACS), it has an example for Print, which can be adapted for HudMessage as well.

Return to “Scripting”