View Single Post
  #10  
Old 03-19-2004, 04:50 AM
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
... Actually none of them repeat, unless you hold them down too long, make sure your keyboard settings don't repeat keys too fast. If not that, it's lag, use a timeout and check that the key wasn't down last time it was checked.

weapon;
NPC Code:

//#CLIENTSIDE
if (keypressed) {
if (keydown(5)) {
this.c++;
setplayerprop #c,#v(this.c);
}
if (strequals(#p(1),d)) {
this.d++;
setplayerprop #c,#v(this.d);
}
if (keydown2(keycode(a),false)) {
this.a++;
setplayerprop #c,#v(this.a);
}
}



toAndy: keydown is a flag, it can't "read fast"
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote