Hey, I ran into a problem where I have weapon that's supposed to be allowing the player to use a sword gani while walking, basically pressing two keys at once (walking dir key, s key for attacking). Here's part of the script, which is triggered from a timeout:
PHP Code:
function onWalkCheck() {
if (player.ani == "e_weapon-1h-attack") {
if(keydown(5)) {
setani("e_weapon-1h-attackwalk", params[3]);
}
}
}