(05-07-2012, 06:55 AM)Sikktwizted Wrote: Ok so I am a bit curious. Are the void parts of the script basically category separators for different stuff?
Void is something called a "data type specifier".
Functions are not just things that you pass parameters into. They can also create parameters themselves - so called "return values", using for example "return (value);", but while the value can vary, you have to specify what data type it will be, in the beginning of the function declaration. "Void" is the exception. "Void" means that the function won't return any parameter values at all.
Edit:
There needs to be a new expression for when somebody gets ninjad, but provides a much better reply, rendering the first replies obsolete. You've both been "samuraied".