|
Post by justsomedev on Jun 15, 2023 2:12:11 GMT
Hello everyone, I'm having trouble pin pointing an issue where if you open up your inventory to equip a weapon while swimming underwater it then changes your swimming up animation to jumping as if you are walking on land. If you are deep enough underwater and you land from jumping it will switch from swimming animations to walking animations with the character's walking speed and swimming speed combining. I've looked, and still looking, through the vThirdperson Motor, Controller, Input and vInventory scripts and I can't seem to see the issue in the scripts. If anyone has dealt with this issue can you please provide your solution? If not any and all assistance will be greatly appreciated. Thanks in advance!
|
|
|
Post by justsomedev on Jun 17, 2023 22:20:49 GMT
Update: I made a new default project to test for the same issue and the issue still occurs. When you try swimming up the character will jump instead and if you are still underwater the character will land and the swimming animations that are dictated by the action state will be ignored and replaced with the locomotion animations and functions as if the character is out of water. The issue starts when you open the inventory and equip a weapon while swimming underwater. I tried different methods in my main project to fix the issue and I still can't find the cause, please help. Thanks in advance.
|
|
|
Post by justsomedev on Jun 26, 2023 6:05:25 GMT
Update: I'm trying to use a custom animator tag as a means to lock the swim state animations. I created a animator tag in the vThirdPersonMotor and vThirdPersonAnimator, but is there a way to pull methods from the vSwimming to the vThirdPersonController? I tried to pull the Swim behavior method from the vSwimming into the vThirdPersonController but encountered errors upon compiling. I know that the vSwimming is a vCharacterController.vActions script and the vThirdPersonController is a vCharacterController script when comparing the namespaces. Not sure if this affects the calling of methods from one script to the other but currently I can't call swimming methods from the vSwimming to the vThirdPersonController only the other way around works. Any assistance will be greatly appreciated, thanks in advance.
|
|
|
Post by Invector on Jun 29, 2023 12:56:11 GMT
There is a Event in the ItemManager that calls a method to reset the AnimatorParameters, try removing it
|
|
|
Post by justsomedev on Jun 29, 2023 23:35:16 GMT
You just saved me! I replaced the vShooterMeleeLockAllInput for the Item manager event and it solved the issue. I can't believe how simple that was. Thanks again greatly appreciate it!
|
|