You're assuming it as an action. Unlike keypressed, where it calls the action, keydown and keydown2 are best used in a timeout. Generally I do a clientside timeout of .05 and then do it. so:
NPC Code:
if (timeout)
{ if (keydown(0))
{ playery = playery-.1;}
timeout=0.05;
}
I can guarantee you that will work
Also, if you're using keydown2 it requires(key,true/false) I believe. So if keydown2(8,true) then it will perform the function. It AGAIN is NOT an action but a function as Kai calls them. To me, everything in an if statement is an action or a non-action. If you can use it like if (playerchats) || if (playertouchsme) kind of stuff, then it's an action. if (strequals(#a,Projectshifter)) however is not. That does not run by itself. hope it helps, enjoy.
---Shifter