• Determining an entities 3d2d height
    2 replies, posted
I am trying to figure Out how to change the height of a 3d2d textscreen on an health charger I made, but can't understand how cause i'm using getpos on the entity, but if if I try to put in custom height cords by entering each one separately then it just doesn't work. [code] cam.Start3D2D( self:GetPos() , self:GetAngles() , 0.5 ) draw.RoundedBox( 0 , 1 , 1 , 50 , 50 , Color( 0 , 138 , 30 , 120 ) ) draw.SimpleText( "Health: "..self:GetStoredHealth() , "HealthFont" , 1 , 25 , Color( 0 , 138 , 30 ) ) cam.End3D2D() [/code] [IMG]https://i.gyazo.com/d9b7a108443a0a52d56e7c86754b5869.png[/IMG] Could anyone possibly help out with this? I just need to raise it above the entity somehow.
Replace [code] self:GetPos() [/code] with something like [code] self:GetPos()+self:GetUp()*10 [/code]
[QUOTE=Benn20002;52240295]Replace [code] self:GetPos() [/code] with something like [code] self:GetPos()+self:GetUp()*10 [/code][/QUOTE] Pretty late reply, but thanks man. It works. :zing:
Sorry, you need to Log In to post a reply to this thread.