.05 may have it repeat at times, but then again when you do a GUI or something, .1 may be not sensitive enough, people often just tap and release. I'd say set a variable.
NPC Code:
if (created)
{ this.tap=0; timeout=.05;}
if (timeout)
{ if (keydown(0) && this.tap==0)
{ action(); this.tap=1;}
if (!keydown(0) && this.tap==1)
{ this.tap=0;}
timeout=.05;
}
That may be the best way.
---Shifter