opida
Junior vMember
Posts: 38
|
Post by opida on Mar 11, 2020 17:36:16 GMT
Hey, so i'm trying to diable the punching animation for weak and strong attack. I tried to delete the unamred animation in the animator, but then it uses the sword animation when punching (look really stupid). I also tried to modify the code in the VShooterMeleinputs.cs, that disables the punching, but also the weak and strong attack for using an sword. So basically I can't seem to find where in the code I can disable punching, and keep sword animation and shooter. BTW i'm using the ShooterMelee controller Thanks
|
|
|
Post by Chronicman on Mar 11, 2020 19:26:36 GMT
What you could do is check if the player has something equipped a sword in your case and then pass that to the animator. Delete unarmed attacks in the animator and add an additional check to sword animation transition using the respective bool you made. That would stop the player using sword animations while not having a weapon.
|
|
opida
Junior vMember
Posts: 38
|
Post by opida on Mar 15, 2020 20:49:27 GMT
Ye I also thought of having an check to see if the player has an item in his hand or not. Thanks!!!
|
|