Ok, I finally got around to it, here are some basic tutorials (will make more later). The second one is missing right now, I'll get it uploaded (again) soon.
#2 didn't upload properly. #5 is up -- I'll link it in a minute, 6 is on the way (recorded not uploaded)
parameters are basically data you give to functions when you call them.... so as long as it's a value, you can 'pass' (the technical term) that value to the function. The function then copies that value and can use it like a variable. Soooo this:
local var = 5
function moo(x) print(x) end
moo(var)
will take 5, give it to moo, moo then calls that 5 'x', and then you print x, which is 5, to console.
Now, you actually don't need to pass it in this case because of scope, the variable var was declared within the scope that the function is in, so I could just do a print(var) in the function.
And as for entities, that's jumping the gun a little bit.
...Day 74...Revan still haven't uploaded his second lua tutorial...Running out of bean cans...Starting to hear funny noises in my head, but i'm not crazy...crazy....crazy....crazy...