Alexis_Zarate
Member
I use the code, to enable the ability:
var characterlocomotion = player.GetComponent<UltimateCharacterLocomotion>();
var quieto = characterlocomotion.GetAbility<Idle>();
quieto.AllowPositionalInput = false;
quieto.AllowRotationalInput = false;
characterlocomotion.TryStartAbility(quieto);
I use the code, to disable the ability:
var characterlocomotion = player.GetComponent<UltimateCharacterLocomotion>();
var quieto = characterlocomotion.GetAbility<Idle>();
quieto.AllowPositionalInput = false;
quieto.AllowRotationalInput = false;
characterlocomotion.TryStopAbility(quieto);
I set StartDelay to 0 so the ability won't take long to start, but this doesn't work for me.