Quantcast
Channel: LucasForums - Holowan Laboratories
Viewing all articles
Browse latest Browse all 507

For Loops

$
0
0
I'm getting a syntax error when trying to use for loops, ie:

Code:

for(int i = 0; i < 5; i++) {
    //do stuff
}

This should work should it not? Do they work differently in nwscript for some reason, or are they not supported at all. If so, what other ways could I iterate a command through multiple objects?

I don't want to assign it to each object individually because it is messy code, and if there's one thing I hate in this world it's messy code.

Viewing all articles
Browse latest Browse all 507

Trending Articles