Whenever I press E on my entity, the 3D2D wordbox just moves over a couple of inches… There are no umsgs to tell it to do that or anything that should make it do that.
include("shared.lua") function ENT:Draw() self:DrawModel() local pos = self:GetPos() local ang = self:GetAngles() local oWidth = surface.GetTextSize("This moves to the right on E") local tAng = ang tAng:RotateAroundAxis(tAng:Up(), 90) cam.Start3D2D(pos + Vector(0,-10,18), tAng, 0.2) draw.WordBox(2, -oWidth*0.5 + 5, -30, "This moves to the right on E", "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255, 255)) cam.End3D2D() end
Is my cl_init.
In my init’s use function all thats in there is just arithmetic’s which have nothing at all to do with the clientside code (as you can see). Maybe its got something to do with the fact im using ENT:Draw and I should be using a hook or something?