Thread: Light effects.
View Single Post
  #4  
Old 04-09-2002, 02:51 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=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...
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'