• Title above NPC.
    8 replies, posted
Hello, I would like to ask if there is a way to put titles above NPC head? I've searched for a lot in google and facepunch and found nothing, I would really glad if someone help me. Thanks
3d2d.
Is this a scripted NPC or just NPC enemies/allies?
Yeah I know I should do it with 3d2d, I tried but I didnt success. And yes this is scripted NPC's in my rp gamemode.
please post the cl_init.lua of your npc and I will gladly script a title for your npc.
Im not sure you need the cl_init, the NPC is from perp 3.5, but add me on steam if you can help : [url]http://steamcommunity.com/profiles/76561198038768044[/url]
You said it was a scripted npc so it would be in entities/entites/ I don't care if its perp I just need the cl_init.lua of the entity and it can be scripted like that.
Here, I'll be even nice and include this here: [lua] surface.SetFont("HUDNumber5") local TextWidth = surface.GetTextSize("I'm a lonely NPC") Ang:RotateAroundAxis(Ang:Up(), 90) cam.Start3D2D(Pos + Ang:Up() * 11.5, Ang, 0.11) draw.WordBox(2, -TextWidth*0.5, -30, "I'm a lonely NPC", "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() end [/lua] You can change the draw.WordBox quote and the font (you can see the font types in the GMod wiki)
Thank you very much :) Ill try it soon
Sorry, you need to Log In to post a reply to this thread.