|
So captain obvious tell me what is not styled on that.
temp.flags only stay in the function. Using this.flags will be usable in the whole script and can be changed external through other scripts (thats why i made it this.mostec since you might need it later on). There is no need in using this.flags in that case but its up to you.
|
Oh alright!! Got that!! Thanks.
function onCreated() {
this.number=0;
}
function onPlayerTouchsMe() {
if (this.number==0) {
this.chat="you touched me! I feel so special!";
this.number=1;
} else {
this.chat="Stop touching me! You already did!";
}
}
|
So exactly what I'm asking is : so temp.number can't replace this.number in this case?
And second : is there any other way without using this.number?
Thanks a lot!
P.S @iPad : his script style is readable and nice to the eye.