There is:
C#:stopAbility(force);
Did you tried it? (I think that attack is the ability "Use" of the items)
var characterLocomotion = transform.GetComponent<UltimateCharacterLocomotion>();
if (characterLocomotion == null) return; // Character locomotion not found
var useAbility = characterLocomotion.GetAbility<Use>();
if (useAbility == null) return; // Use ability not found
useAbility.stopAbility(false); // Just stops the ability Use
How about:
C#:var characterLocomotion = transform.GetComponent<UltimateCharacterLocomotion>(); if (characterLocomotion == null) return; // Character locomotion not found var useAbility = characterLocomotion.GetAbility<Use>(); if (useAbility == null) return; // Use ability not found useAbility.stopAbility(false); // Just stops the ability Use
(I didn't test this code)
Because if you stop all abilities, then if your character is jumping, running or crouching it will also stop.