edited December 2020 in ORK Support
Hi! So I want my character to play an animation when he attacks outside battle (like swinging a sword). I already set the left control key as an input key.

image

I also added the key to my control map, making it an attack action.

image

Now I want to execute some function when this key is pressed if my character has something equipped on the "Arma" slot. The function is called "Ataque".

image

I put the class name in the Player, like this:

image

That's my script:

image

And here's where my script is located:

image

However, nothing happens when I press left control. It should show the debug message. Am I doing something wrong?
Post edited by NatanAntonioli on
  • Is the attack actually useable in the field?
    Also, is the control map added to the combatant?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.