Honestly, the best way to learn something new is to try things, make mistakes, and then seek answers. Most often the error itself will be the answer you require to revise the original code.
It can take some deciphering sometimes or a little common sense (I tend to over think the error).
If you absolutely NEED tutorials there are some on the (horrible?) wiki:
Lua Tutorial Series - GMod Wiki
I started with an idea that I wanted to realize. So I browsed through the functions available to me and just began coding. Then got frustrated how client and server are separate, but moved forward.
Of course, if you've ever coded in anything else before this should be a sinch to pick up, lua must be one of the most forgiving and simple languages ever.
I would advise against learning from examples, they can be helpful sometimes but it is far too easy to simply copy paste then edit it to fit your needs.
It depends on what you want to make as SWEPs and SENTs have different setups and the files go in different locations. Tell me which one you would like to start with and I'll set up a ready to script template for you to code in when I get back from school.
That way you won't have to deal with setting it up (the boring and stupid part) and can just start experimenting with functions.


LinkBack URL
About LinkBacks








Reply With Quote





Bookmarks