• An interactive 3D2D ?... How?
    3 replies, posted
Hi, i'm currently making a French server with a friend. We have a big project, but for some things i need to do a "interactive 3D2D" on my entity... I've seen some "plugins": 3D2D-vgui or other similar. But i won't use them... I wanna make everyting myself. Does anyone can explain me how can i do a buttons on my entity with 3D2D? Or give me some example? Thank's for reading, I'm waiting for some help!
util.TraceLine You need to detect where your player is looking at, if your player is looking at the button & is pressing E for exemple you do something. That's how i do it
For some good, old fashioned fun you use util.IntersectRayWithPlane and some fun math to figure out where on the 2d3d plane they were looking when they hit +use and check that against buttons or whatever you're interacting with
Ok, i will look for that next week. Thank's you guys.
Sorry, you need to Log In to post a reply to this thread.