Thread: Light Effects
View Single Post
  #2  
Old 03-26-2001, 05:35 AM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
A friend of mine scripted this :P

// NPC made by «¤†hè Ñîght Ñïñj㤻 ¾©
NPC Code:
if (playerenters) {
dontblock;
drawoverplayer;
drawaslight;
this.lightonoff=0;
this.lightplusminus=0.25;
timeout=0.05;
timereverywhere;
setgif light2.png;
setcoloreffect 1,1,0,this.lightplusminus;
}
if (timeout) {
if (this.lightonoff==0) {
setcoloreffect 1,1,0,this.lightplusminus;
this.lightplusminus+=0.01;
}
if (this.lightonoff==1) {
setcoloreffect 1,1,0,this.lightplusminus;
this.lightplusminus-=0.01;
}
if (this.lightplusminus==0.99) {
this.lightonoff=1;
}
if (this.lightplusminus==0) {
this.lightonoff=0;
}
timeout=0.05;
}


(I added the [code] block - G)

Too bad somethings messed up with graal so lighting effects come out as little blocks of color on my comp >
__________________


"My words are like weaponry on a record"

Last edited by galen; 03-26-2001 at 09:12 AM..
Reply With Quote