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.