View Single Post
  #1  
Old 09-25-2003, 05:33 PM
FreezeBurnX FreezeBurnX is offline
Registered User
FreezeBurnX's Avatar
Join Date: Jul 2003
Location: Belo Horizonte - Brasil
Posts: 296
FreezeBurnX is on a distinguished road
Send a message via AIM to FreezeBurnX Send a message via Yahoo to FreezeBurnX
Question PlayerTouchingMe?

Hello! I need a little help with this.
It should be like...
NPC Code:

if(created){
dontblock;
drawaslight;
setimgpart greek.gif,32,0,32,32;
}
if (playertouchsme) {
setcoloreffect 1,1,1,.3;
setimgpart greek.gif,32,0,32,32;
x+=2;
}
but then when you stop touching it should go like...
setcoloreffect 1,1,1,1;
setimgpart greek.gif,0,0,96,32;
x-=2;


Nappa Helped me and it turned too:
NPC Code:

//NPC made by FreezeBurnX
//Edited by Nappa
//#CLIENTSIDE
if(created){
dontblock;
drawaslight;
setimgpart greek.gif,32,0,32,32;
}
if(playertouchsme){
setcoloreffect 1,1,1,.3;
timeout=.5;
}

if(timeout){
if(playerx!=x){
setcoloreffect 1,1,1,1;
timeout=.5;
}
}


But I want that if you are touching/under it still will
NPC Code:

setcoloreffect 1,1,1,.3;


But it return too
NPC Code:

setcoloreffect 1,1,1,1;


With the timeout
Reply With Quote