Hello. I've been fiddling with this for a while now and also read the wiki but no success.
I want to rotate the WordBox so that the words are, well, correctly rotated? xD
Any help is appreciated!
[IMG]http://images.akamai.steamusercontent.com/ugc/496888905820087518/30E68DF303D32BC3267E29ADF57DADBD57533D3A/[/IMG]
Edit:
Code:
[CODE] local Ang = self:GetAngles()
Ang:RotateAroundAxis(-Ang:Right(), 90)
cam.Start3D2D(Pos + Ang:Up() * 12.1, Ang, 0.11)
draw.WordBox(2, -TextWidth*0.5, -30, text, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
draw.WordBox(2, -TextWidth2*0.5, 18, owner, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
cam.End3D2D()[/CODE]
Thats a problem with the angle.
Try rotating it with Ang:Forward to 90
[QUOTE=geferon;49684148]Thats a problem with the angle.
Try rotating it with Ang:Forward to 90[/QUOTE]
Already tried, it's inside the box on the left side.
I don't know how to put it on the front though.
Its basically attempt and error, you'll have to see which number gives you the desired result...
Try messing around a bit more with Ang:RotateAroundAxis and see if it helps you
[QUOTE=addemod;49684153]Already tried, it's inside the box on the left side.
I don't know how to put it on the front though.[/QUOTE]
Try with all diferent things (Ang:Left, Ang:Right...) until you get it
[editline]6th February 2016[/editline]
Ninja'd
I really can't get it to work.. wtf am I supposed to do?
[QUOTE=addemod;49685340]I really can't get it to work.. wtf am I supposed to do?[/QUOTE]
Magic, I mean, math.
[CODE]
local Pos = self:GetPos()
local Ang = self:GetAngles()
local TopAng = self:GetAngles()
local BottomAng = self:GetAngles()
cam.Start3D2D( Pos + TopAng:Up() * 10, TopAng, 0.5 )
cam.End3D2D()
[/CODE]
I used that for my printers.
[QUOTE=Tupac;49685912][CODE]
local Pos = self:GetPos()
local Ang = self:GetAngles()
local TopAng = self:GetAngles()
local BottomAng = self:GetAngles()
cam.Start3D2D( Pos + TopAng:Up() * 10, TopAng, 0.5 )
cam.End3D2D()
[/CODE]
I used that for my printers.[/QUOTE]
So you basically created 3 variables for the same value and used/named them as different values?
[QUOTE=GGG KILLER;49685830]Magic, I mean, math.[/QUOTE]
No shit, but I really don't have any clue how to :P
[QUOTE=GGG KILLER;49685943]So you basically created 3 variables for the same value and used/named them as different values?[/QUOTE]
Ouch :(
Fixed it :D
For those who wonder:
[CODE] local Ang = self:GetAngles()
Ang:RotateAroundAxis(Ang:Forward(), 90)
Ang:RotateAroundAxis(Ang:Right(), -90)
cam.Start3D2D(Pos + Ang:Up() * 12.1, Ang, 0.11)
draw.WordBox(2, -TextWidth*0.5, -30, "some text", "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
draw.WordBox(2, -TextWidth2*0.5, 18, "some other text", "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
cam.End3D2D()[/CODE]
Sorry, you need to Log In to post a reply to this thread.