Quote:
Originally posted by Shard_IceFire
Hi!
I am a pretty good scripter, but one thing that I just skipped over when I was learning was arrays. I was wondering, exactly how do you use them? And what can they be used for?
Thanks.
|
well a basic array would be like
NPC Code:
if(created){
this.x={1,30,50,25};
this.y={5,20,18,30};
}
if(playertouchsme){
this.rnd=int(random(0,4));
x=this.x[this.rnd];
y=this.y[this.rnd];
}