YesNoOk
avatar

Attack while moving problem? (Read 494 times)

Started by Nexus Games, April 02, 2017, 04:02:14 pm
Share this topic:
Attack while moving problem?
#1  April 02, 2017, 04:02:14 pm
  • avatar
  • ****
I have a character and this character can walk and attack but during walking they cant go into an attack state
how can i get them to attack during walking?
Re: Attack while moving problem?
#2  April 02, 2017, 07:17:24 pm
  • *****
  • Shame on you!
    • USA
I'm having a hard time telling which way you want this to go.
A) You want it to be able to attack while walking?
2) You want it to not be able to attack while walking?

For 2, you just set ctrl=0 in statedef 20, and add a changestate with command != "holdfwd" && command !="holdback"
Or what ever you want to get out of state 20.

If you want it to be able to attack, but they cant for some reason, you need to look in your cmd and look at your triggers for your changestates. You may be setting a var in state 20 that's used to stop the changestates. Or you may actually have ctrl=0 set inside state 20. Check both out.
vVv Ryuko718 Updated 10/31/22 vVv