Abilities add self-contained behaviors such as jumping, interacting, dying, changing speed, and using items. Each owns start conditions, active changes, and stopping. Unlike effects, abilities can drive the Animator and are synchronized across the network.

Configure an ability

  1. In Ultimate Character Locomotion > Abilities, select + and choose a concrete type. Use the separate Item Abilities list for equipping, aiming, using, reloading, and other item actions.
  2. Select its row, keep Enabled selected, and configure its specific prerequisites and settings.
  3. Choose Start Type, Stop Type, and any Input Names. Retain the included ability’s intended activation model unless a different owner is deliberate.
  4. Drag the row to its intended priority. Put critical responses such as Die above the actions they must interrupt.
  5. Configure shared State, Animator, item, and locomotion settings only where this ability needs them.

Understand priority and lifetime

A start request can come from input, automatic checks, a script, or a custom starter. Locomotion checks whether the ability is enabled, whether its start conditions pass, and whether active abilities block it.

For nonconcurrent abilities, a lower list index means higher priority. An active higher-priority ability normally blocks a lower one; starting a higher-priority ability can interrupt lower ones. Concurrent abilities can overlap, but explicit blocking/stopping rules still apply. Their list order also determines update order when several abilities modify the same input, facing, or movement.

Ability lifecycle from the start request and eligibility checks through active updates and stop conditions

For example, Interact above Die can prevent death animation while interacting:

The current UCC Abilities list shows Interact above Die, giving Interact the higher priority.

Move Die above Interact so death can take control:

The current UCC Abilities list shows Die above Interact so death has the higher priority.

Starting applies the configured State, Animator data, audio, attribute modifier, equipment rules, and temporary locomotion overrides. Stopping restores those base-managed settings. Ability-specific code may add further ownership or cleanup requirements; follow its guide.

Choose shared settings

Setting Choice and consequence
Start Type Automatic repeatedly tests conditions; Manual accepts system/script requests. Input starts include Button Down, Button Down Continuous, Double Press, Long Press, Tap, and Axis.
Custom start Assign an Ability Starter for a reusable input/signal gate.
Stop Type Choose Automatic, Manual, Button Up, Button Down, Button Toggle, Long Press, Axis, or a custom stopper. Axis stops on return to zero.
Input Names Exact names read by input-driven start/stop types. Manual activation does not poll them.
State Activate a State System preset during the ability.
Ability Index Parameter Select an Animator branch; this number does not set list priority.
Animator Motion Add authored motion deltas during active updates. The asset does not control ability lifetime.
General input/gravity/collision settings Temporarily change which locomotion features are allowed or forced. Leave defaults unless this behavior needs an override.
Use Root Motion Position / Use Root Motion Rotation Use No Override on both to retain character policy, True on a required motion channel, or False on both to suppress both channels together.

Verify the conflict and recovery paths

  1. Trigger the feature’s real start condition. The intended row should show (Active) and its configured State/Animator behavior should appear.
  2. Start a higher-priority nonconcurrent response during the action. Confirm the intended interruption. Test compatible concurrent abilities together, including their final movement/facing result.
  3. Trigger the stop condition. Confirm the row becomes inactive and input, items, gravity, root motion, and collisions return to their intended values. Test these values after interruption as well as normal completion.

For missing activation, inspect enabled/input settings, feature-specific start conditions, and active blockers. For an ability that remains active, inspect its stop gate or completion event. For absent animation, compare the selected index and data with actual Animator transitions. Configure item actions in Item Abilities with the expected item and slot active.

Developer reference

Retrieve the ability from UltimateCharacterLocomotion and request activation through TryStartAbility / TryStopAbility. A request may be rejected by normal checks:

using UnityEngine;
using Opsive.UltimateCharacterController.Character;
using Opsive.UltimateCharacterController.Character.Abilities;

public class MyObject : MonoBehaviour
{
    [Tooltip("The character that should start and stop the jump ability.")]
    [SerializeField] protected GameObject m_Character;

    /// <summary>
    /// Starts and stops the jump ability.
    /// </summary>
    private void Start()
    {
        var characterLocomotion = m_Character.GetComponent<UltimateCharacterLocomotion>();
        var jumpAbility = characterLocomotion.GetAbility<Jump>();
        // Tries to start the jump ability. There are many cases where the ability may not start,
        // such as if it doesn't have a high enough priority or if CanStartAbility returns false.
        characterLocomotion.TryStartAbility(jumpAbility);

        // Stop the jump ability if it is active.
        if (jumpAbility.IsActive) {
            characterLocomotion.TryStopAbility(jumpAbility);
        }
    }
}

Observe OnCharacterAbilityActive(Ability, bool) for character abilities; item abilities use OnCharacterItemAbilityActive. The locomotion Unity events also report changes. Register and unregister listeners together:

using UnityEngine;
using Opsive.Shared.Events;
using Opsive.UltimateCharacterController.Character.Abilities;

public class MyObject : MonoBehaviour
{
    /// <summary>
    /// Initialize the default values.
    /// </summary>
    public void Awake()
    {
        EventHandler.RegisterEvent<Ability, bool>(gameObject, "OnCharacterAbilityActive", OnAbilityActive);
    }

    /// <summary>
    /// The specified ability has started or stopped.
    /// </summary>
    /// <param name="ability">The ability that has been started or stopped.</param>
    /// <param name="activated">Was the ability activated?</param>
    private void OnAbilityActive(Ability ability, bool activated)
    {
        Debug.Log(ability + " activated: " + activated);
    }

    /// <summary>
    /// The GameObject has been destroyed.
    /// </summary>
    public void OnDestroy()
    {
        EventHandler.UnregisterEvent<Ability, bool>(gameObject, "OnCharacterAbilityActive", OnAbilityActive);
    }
}

Continue with a workflow