I made a small NPC just to see what the keycodes were (like 'a' is 65). It works with all the keys except the arrow keys. Here's the script:
NPC Code:
//#CLIENTSIDE
if (created) {
this.on=0;
}
if (weaponfired) {
if (this.on==0) {
this.on=1;
disabledefmovement;
}
else {
if (this.on==1) {
this.on=0;
enabledefmovement;
}
}
}
if (keypressed&&this.on==1) {
setplayerprop #c,Code=#p(0) Key=#p(1);
}
Anyone know why it won't work?