Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.