(07-20-2011, 06:14 PM)xiphirx Wrote: Sorry, this is not advanced scripting, you're still at the beginner level.
It would help if you knew C/++ beforehand, but it looks like you're learning as you go.
The first two examples that Kyle posted in his first post are incorrect as they do not have the same effect. Also, you do not need the return statement really, its a void function to begin with.
Return isn't returning nothing as it can't because we're working on a void function but it stops the code from executing in the same or lower hierarchy levels. For instance he could have the continuation of his function bellow.
This is the basics of coding, there is nothing close to intermediate here, there is nothing close to advanced and few things under intermediate levels in amnesia level scripting.
Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.