Quote:
Originally posted by joseyisleet
-=Josey=-
Well, I made my dim to bright light, and it goes something like:NPC Code:
if (created||playerenters){
setimg light4.png;
dontblock;
timeout=.1;
}
if (timeout){
this.color1=1;
this.color2=2;
this.color3=3;
doDimtoBright();
}
function doDimtoBright(){
setcoloreffect this.color1,this.color2,this.color3,0.1;
}
Now, would it work if I put the //#CLIENTSIDE before the function, or, will it not call the function right? I'm not sure about it...
|
Serverside and clientside parts are loose parts of the script, so basically if only the function is clientside, the serverside part of the NPC wouldn't know there is a function to call.
So i this case you'd just have to make the whole script clientside.