• How to make a Garry's Mod Compass
    7 replies, posted
I really want to make a compass but I don't really now LUA all that well, I'm taking this as an example to see where I can see and go for different things I will hope to try and make. I am just starting off, so some questions. Do I need to make more than one lua script ETC Shared.lua or anything May someone send me the code that shows direction and bearing Example : North South East West, Bearing 244 or whatever bearing you are actaully in
Well that sounds something really easy to make. To answer the first question: You just need it running clientside since everything needed is there. For the second question: I'm making a small script and testing it in game right now, I'll EDIT this when I'm done.
Lowercase that "angle.Yaw".
?
what? .y
Spot the difference surface.DrawTexturedRectRotated(ScrW()/2, ScrH()/2, 20, 100, -EyeAngles().Yaw) surface.DrawTexturedRectRotated(ScrW()/2, ScrH()/2, 20, 100, -EyeAngles().yaw)
Yeah, who uses "yaw" anyways? It's another two keys you need to press let alone when you decide to capatilize it. p y r Everyday.
Probably going to use it this way from now on. But I don't know if that guy is being petty or something but .Yaw .yaw .y all return the same value :-I It's also easier to understand for someone like the OP that asked the question.
Sorry, you need to Log In to post a reply to this thread.