Thread: -keyNOTdown(i)
View Single Post
  #13  
Old 01-06-2004, 07:40 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by D1ce2
Isnt there a quick key in here?
I forgot how it goes but it's like
NPC Code:

if(playerenters)
timeout=0.05;

if(timeout){
if(keypressed){
if(keydown(t),true){
bla;
}
}
timeout=0.05;
}


I forgot maybe it is wrong, o-well I tried.

its
keydown2(keycode(t),false)
Quote:

If you don't want it detecting add a key (!)
like
NPC Code:

if(!bla && !bla2 && !bla3 && !bla4)){
//bla
}


Or as kai would do:
NPC Code:

if(!bla){
if(!bla2){
if(!bla3){
if(!bla4){
//bla stuff
}
}
}
}



As it's easier to read;P
Kai would choose the first, since the checks are related


oman, Loriel's script is crazygonuts, I never thought to use tokenize like that
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote