View Single Post
  #4  
Old 11-23-2005, 12:57 AM
Janus Janus is offline
Submit to my will
Janus's Avatar
Join Date: Dec 2004
Location: No stalking the Odin.
Posts: 16
Janus is on a distinguished road
Send a message via AIM to Janus
Quote:
Originally Posted by Raeiphon
It appears the same as the image =/
Isn't that the point? o_O

K, I'm not sure how much you know, or what the problem is, so I'm just gonna bust through all the possible problems I can think of.

The default light npc:
NPC Code:
// NPC made by Stefan Knorr
if (created) {
setimg light2.png; // change light2.png to the mist image.
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99; // make sure the alpha is below 1 (red,green,blue,alpha)
drawaslight;
}



Make sure you have light effects enabled and all that good stuff.

If you're wanting the npc to SHOW the mist and not BE the mist itself, use showimg, changeimgcolors, and changeimgvis.
They are used:
NPC Code:
showimg index,filename,x,y; //make sure the index number matches for these
changeimgcolors index,red,green,blue,alpha; // values are 0-1, keep alpha below 1
changeimgvis index,layer; // have layer at 3



Also, don't forget to have //#CLIENTSIDE above that stuff.



Typing is fun.
__________________


Manager of Babylon
Join us.
We have cookies.
Reply With Quote