Ability Starter
An Ability Starter supplies a reusable custom input or signal condition while preserving normal ability start checks. Use Combo Timeout for a timed button/axis sequence. Keep world requirements, such as valid ground or a nearby interaction object, in the ability that owns them.
Configure a timed combo
- Select the ability in Ultimate Character Locomotion > Abilities and set Start Type: Custom.
- Select Starter: Combo Timeout.
- In Combo 1, enter an input name and choose Button Down or Axis. Ensure the name exists in the character’s input setup.
- Select + to add each later entry. Fill every input name and give each later entry a practical positive timeout, such as 0.2 seconds.
- Configure Stop Type separately. The starter decides when to request a start, not when the active ability ends.

The illustrated combo requests a start after Action, then Fire1 within 0.2 seconds. Keep at least one entry in an Inspector or programmatic configuration.
| Entry setting | New-entry default | Purpose |
|---|---|---|
| Input name | Empty | Exact input to read; fill before use. |
| Input type | Button Down | A new press advances on its press frame. Axis accepts a nonzero raw axis, including one already held. |
| Timeout | 0 | Maximum wait after the preceding entry. Combo 1 does not use its timeout. |
For a single ordinary input condition, use a standard start type—Automatic, Manual, Button Down, Button Down Continuous, Double Press, Long Press, Tap, or Axis. Changing away from Custom removes its assigned starter.
Understand sequence and activation checks
The locomotion handler polls the starter for Custom input starts. Combo Timeout advances entries in order. An expired waiting window resets progress to Combo 1 on that update; begin a fresh sequence after that reset. Increase later timeouts if the intended input window is too short.
Returning true requests activation. The ability must still be enabled, pass CanStartAbility, and satisfy priority/conflict rules. A successful start resets Combo Timeout’s progress. Starter start, stop, and destruction callbacks follow the owning ability’s lifecycle; its State and Animator settings remain ordinary ability behavior.
A manual TryStartAbility call does not poll the starter first. It still uses the usual ability checks and lifecycle callbacks by default. Use Detect Object Ability Base for scene-object detection instead of treating the starter as a trigger component.
Create a custom starter
Derive a serializable, non-abstract class from AbilityStarter. Loaded starter types appear in the Starter dropdown. CanInputStartAbility(IPlayerInput) should report whether reusable input/signal state is ready; leave gameplay validation in the ability’s CanStartAbility.
using Opsive.Shared.Input;
using Opsive.UltimateCharacterController.Character.Abilities;
using Opsive.UltimateCharacterController.Character.Abilities.Starters;
using System;
using UnityEngine;
[Serializable]
public class MyAbilityStarter : AbilityStarter
{
public override void Initialize(GameObject character, Ability ability)
{
base.Initialize(character, ability);
// Subscribe to a custom signal if needed.
}
public override bool CanInputStartAbility(IPlayerInput playerInput)
{
return false;
}
public override void AbilityStarted() { }
public override void AbilityStopped() { }
public override void OnDestroy()
{
// Unsubscribe from custom signals here.
}
}
Initialize supplies protected m_GameObject and m_Ability through the base call. Subscribe to a reusable signal there, reset temporary progress in AbilityStarted or AbilityStopped, and release subscriptions in OnDestroy. A starter is a serializable helper, not a MonoBehaviour that receives Unity trigger callbacks.
Verify the sequence and retry
- Perform only the first input of a multi-entry combo. The ability should remain inactive. Complete the sequence within the later entries’ timeouts; (Active) and the feature’s expected State/animation should appear.
- Let the waiting window expire, allow the reset update, then press only a later input. It should not activate the ability. Perform a fresh complete sequence after stopping and confirm it works again.
- Compare Button Down with a held Axis step. Confirm a held axis advances only where that behavior is intended; use Button Down for a new tap requirement.
- Complete the sequence while a normal ability start condition or priority rule blocks activation. Confirm the starter does not bypass that rule.
For no response, check Custom, the assigned starter, nonempty entries, mapped names, and positive later timeouts. If the sequence completes but the ability stays inactive, inspect the ability’s requirements and active blockers. See Abilities, New Ability, and Events for surrounding lifecycle and notifications.