Quote:
Originally posted by Lomgren
In your walking script (yes you must make your own), istead of using onwall(x,y) use a for loop to go through all the different tiles in the array, just set flag or something if the current tile is equal to one in the array, and use that to show for onwall.
|
Argh U DON'T need a for loop
there is a small word called IN
example:
NPC Code:
if (created || playerenters) {
this.testarray={1,2,3,4,5};
this.number=int(random(0,10));
if (this.number in this.testarray) message OMG YEEEEESSSS!!!;
}