3D text draw?

Started by Kewun, Aug 08, 2016, 10:56 AM

Previous topic - Next topic

Kewun

Would be cool to add a function to vcmp Create3DTextdraw in-game you maybe know what i mean
just a suggestion

Kewun

it should look something like this


KingOfVC

it exist in client side scripting.

1. create a label with GUILabel
2. Add element flag label.AddFlags( GUI_FLAG_3D_ENTITY )
3. Set label position label.Set3DTransform( ingame pos, rotation, size )

Kewun

lol i didnt know.. ill have to try this thing

Kewun

what params have GUILabel function? nvm, ik

Kewun

not works ;c

function Script::ScriptLoad()
{
   shit <- GUILabel(VectorScreen(50,50), 1,"Hello World")
   shit.AddFlags(GUI_FLAG_3D_ENTITY)
   shit.Set3DTransform(Vector(-266.748, -483.334, 54.6294),0,10)
}

what is wrong? i dont see the 3d label

Murdock

There's nothing wrong, it's just bugged. I already reported 3D elements not working a while ago

Kewun


DizzasTeR


Kewun


DizzasTeR

Quote from: Kewun on Aug 08, 2016, 12:32 PMpls tell how ;c

GUI.WorldPosToScreen
Now go play around with it and try to make it, it just took me 5 minutes.

Kewun

what params for this? GUI.WorldPosToScreen(Vector(posx,posy,posz)) ?

DizzasTeR

Quote from: maxorator on Apr 25, 2016, 07:47 PMGUI::WorldPosToScreen(position)
Parameter types: Vector. Return type: Vector.
Returns the screen coordinates for the position.

Read further more functions and documentations on this page in spoilers

Kewun

pls post an example , i dont understand this new client side xD

or fix this for me, pls
function Script::ScriptLoad()
{
   shit <- GUILabel(VectorScreen(50,50), 1,"Hello World")
   shit.AddFlags(GUI_FLAG_3D_ENTITY)
   shit.WorldPosToScreen(Vector(-266.748, -483.334, 54.6294))
   shit.Set3DTransform(Vector(-266.748, -483.334, 54.6294),0,10)
}

cant see the label ;c

Stormeus

Quote from: Murdock on Aug 08, 2016, 11:35 AMThere's nothing wrong, it's just bugged. I already reported 3D elements not working a while ago

It's not bugged. I've tested it in-game and it's worked fine. Chances are you have an invalid transform set.