Please use [CODE] tags, this way you can organize your posts better.
Quote:
Originally Posted by Salaisuus
if (keypressed) {
if (strequals(#p(1),1)) setani plah,; sleep 3;}
If it isnt a continous gani it will restart it when you press during sleep time.
|
If it is a short gani (movements/animations will be done fast), I suppose a sleep is fine, otherwise, a variable setting work too.
Quote:
I suppose I could do somethign like:
if (keypressed && this.keydown=0) {
if (strequals(#p(1),1)) {this.keydown=1; setani plah,; sleep 3;
this.keydown=0;};}
I was just wondering if there was an internal command or something.
|
This shows how people don't read the rules & guidelines of this section.
According to KSI-GS,
rule five:
Use '==' when comparing two values for equality.
Use '=' when assigning a value to a variable.
and you didn't do that, so fix it.
Quote:
Speaking of keys how do I use keydown command?
if (keydown(A)) {
setstring clientr.plahplah,0;}
Thats how I understood its used, but that script doesnt do anything.
|
keydown does not work like that, it is keydown(0...10), if you read some documents that are in your Graal Folder (newfeatures) it explains it quite well. Your problem is based on lack of reading, dude!