• Make it look like a player chats
    4 replies, posted
Hi I wonder, how can I make my ent output to a players chat, like it was a player? HUD_PRINTTALK for an ent NPC looks boring, I want it to look like a normal player wrote it. Ent.Name: blabla. Just like Busan1: blabla. Thank you.
[url]http://wiki.garrysmod.com/page/Player/PrintMessage[/url] That should work.
Network the name/message to the clients in a net message, and from there use chat.AddText.
[lua]chat.AddText(ent:Name() .. " says hello!")[/lua] gunna need to network a few things and such
Thank you both.
Sorry, you need to Log In to post a reply to this thread.