Thread: Keydown
View Single Post
  #3  
Old 01-21-2002, 08:29 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Keydowns... aight, here goes...

up= 0
left = 1
down = 2
right = 3
D = 4
S = 5
A = 6

Basically, it checks to see if the player is pressing the key or not. Example:

NPC Code:

if(playerenters&&!isweapon){
toweapons -Menu;
disableselectweapons;
}
if(keydown(9)&&isweapon){
replace normal weapon select crap with new stuff;
}



That was sorta bad, but it works something like that (9 is Q by the way). That's somewhat similar to this menu thing I made, and probably similar to all those other menus out there.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote