Thread: Light effects.
View Single Post
  #5  
Old 04-09-2002, 05:33 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
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.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."