View Single Post
  #9  
Old 01-09-2002, 03:31 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Re: I need some help!

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.)
Reply With Quote