Thread: Running Attack
View Single Post
  #1  
Old 12-18-2011, 03:58 AM
PrinceOfKenshin PrinceOfKenshin is offline
That guy with a beard
PrinceOfKenshin's Avatar
Join Date: May 2004
Location: Ontario, Canada
Posts: 819
PrinceOfKenshin has a spectacular aura aboutPrinceOfKenshin has a spectacular aura about
Running Attack

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]);
    }
  }

__________________


Quote:
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.

Last edited by PrinceOfKenshin; 12-18-2011 at 04:09 AM..
Reply With Quote