hey
i have added Swimming system
i also have Combat Gun Mode. while On foot Press “E” to equip Weapon
when in swimming system the Key “E” should be disabled/not working
how to disable ‘E’ (weapon equip) Key while simming mode ?
hey
i have added Swimming system
i also have Combat Gun Mode. while On foot Press “E” to equip Weapon
when in swimming system the Key “E” should be disabled/not working
how to disable ‘E’ (weapon equip) Key while simming mode ?
You could make use of a branch, rather than disabling the key, set up a condition to check if you’re moving on the ground, then if it’s true and you press E key then the character can enter gun mode.
Also when you’re swimming or in a water body, change the character’s movement mode to swimming, that should do what you’re looking for
If you’ve already done this, you could make use of the “and” Boolean and make a condition of “is moving on the ground” “and” “is swimming: not” and plug it in as the condition