• Gmod Lua - Making Addons
    1 replies, posted
Hey, I have been trying to learn lua for a while now. It's just that I can't figure out where to start. I have read a good amount on wikis but I have no idea what to implement into the software, where to implement stuff, how to code the things that I need, etc. If anyone could help me or point me in the right direction, or teach me themselves that would be amazing! My steam is Vrael if you want to add me. [url]http://steamcommunity.com/profiles/76561198196862226/[/url]
Well first and foremost, you're going to need an idea. Wether it be creating a HUD, creating a SWEP, or an entire gamemode. Once you have that idea, think through how you would do it in your head, heck even write down steps if you have to. For example if you're trying to make something simple like teleporting the player forward each time they press a button. It'd be something like: If the player presses "E" then get the players position, which will return a vector ( something like 13,49,301 ) and add another vector to it which has the values of how far you want to teleport the player. I suck with Vector math so I forget which place you'd put the numbers in the vector. This was a very rough example I hope I could help.
Sorry, you need to Log In to post a reply to this thread.