Quote:
Originally posted by psichill
Okay I need some help with an NPC.
I am trying to make it where, when you walk onto it it lights up but when you walk off the lights turn off.
Here was my attempt!
// NPC made by Ramsey
if (created) {
setimg whatever.gif;
dontblock;
drawunderplayer;
}
//#CLIENTSIDE
if (playertouchsme) {
setcoloreffect 1,1,1,0.99;
drawaslight;
sleep 1;
}
|
I don't think that will work because, since it is dontblock, playertouchsme will not effect it.
You could use a timeout and do something like
if (playerx>x&&playery>y etc.)