Quote:
Originally Posted by Devil_Lord2
For instance, I guess function onPlayerGrabs(){ }
could be made a class that could return true and make the if statement work..
if (onPlayerGrabs()){} "I think could work assuming it is joined to the class"
could return true or false.. I don't know how it works really...
|
That would be an event, not a statement. GS2 is event-based, so you do things after an event happens, unlike GS1 where you use if-statements for events, lol.
Quote:
Oh I see.. thanks ^.^;
In the future could they do it with commas to add more, or is there no point?
|
There is no reason to, arrays make more sense.
Quote:
I've had a function go through all players, and didn't accept externals.
I had it as:
variable
temp.count = 0;
a lot of script...
return temp.count
and
return count
which kept becoming 0 or null... in the end I set it to this.count = temp.count and it finally worked with:
return this.count
I couldn't get it to pass the temp. variable D:
|
Do you have the script? You must have been doing something else wrong.