A Character Item Action makes equipment fire, swing, cast, throw, block, or perform a custom interaction. Actions belong on the main Character Item, while first-/third-person objects provide presentation and perspective references.

Select the operation

An Item Ability first selects an equipped Character Item by Slot ID, then a compatible action by Action ID. Each action on that item needs a unique ID. These differ from Animator Item ID, which selects animation data, and module IDs, which identify rows inside an action.

Goal Action
General toggle, Attribute use, or custom interaction Usable
Firearm/ranged weapon Shootable
Sword or close-range/unarmed attack Melee
Physical grenade/throwable Throwable
Spell pipeline Magic
Equipped collider protection/durability Shield

The four weapon/spell families inherit Usable. Shield instead requests a Block reaction for its equipped slot. Choose a separate action for a distinct operation; animation variations can stay inside one action’s modules/states.

Add actions and configure abilities

  1. Open Tools > Opsive > Ultimate Character Controller > Item Manager, select the source/existing Character Item, and add named rows under Actions.
  2. Build/Update, then inspect each generated component’s ID, Action Name, and Action Description. Assign unique IDs explicitly after all builds/templates, including newly added Magic.
  3. Configure the character’s Use/Reload/other Item Ability for the intended slot and required action type. Action Template can copy a source item’s setup; review all IDs and perspective references afterward.

Item Manager showing Shootable and Melee actions on an Assault Rifle before Update Item

For a slot-0 firearm with a secondary strike, use Shootable ID 0 and Melee ID 1, then separate Use abilities selecting those IDs with primary/secondary inputs. Give each appropriate modules and Animator/audio states.

Two enabled Use Item Abilities selecting action 0 for primary use and action 1 for secondary use

With one action, GetItemAction(-1) can select that only component. With several, use the exact ID; -1 is not a wildcard.

Configure module participation

Each Usable family has Trigger/Usable groups plus its own operation, feedback, and impact stages. Select compatible rows, assign first-/third-person locations/colliders/prefabs/Attributes/audio, and choose the main enabled row where required. A named State/binding changes module properties such as Enabled rather than supplying a separate activity gate.

Shootable adds Shooter/Ammo/Clip/Projectile/Reload; Melee adds Attack/Collision/Recoil; Throwable adds Thrower/Ammo/Projectile/Re-Equipper; Magic adds Caster/Begin/Cast Effects/End. Their guides specify all-enabled versus first-enabled behavior. See Action Modules & Groups.

When editing prefabs, assign helper locations/colliders manually or configure a supported non-prefab Item Manager workflow before saving. Adding a module does not guarantee those objects exist.

Verify lifecycle and ownership

Character Item initializes actions and their ID lookup, then modules receive owner/context even when disabled. Pickup/equip prepares references and listeners. Item Abilities coordinate start, event/duration waits, operation, completion, Animator/audio updates, and cleanup.

Equip and confirm model/UI/Animator identity first. Test inputs independently: primary fire should not also perform the secondary strike. Inspect Debug, active modules, ammo/hit results, animation/audio, and the selected action/substate. Test blocked starts, interruption/unequip, then re-equip without stale work. Call normal Item Abilities/modules rather than invoking action lifecycle hooks directly.

For wrong/no action, inspect IDs, equipped slot, action type, Trigger, and first failed start check. For an endless action, inspect event timing and animation substate. For an enabled but inactive module, inspect main-row order, overrides, and references. For duplicate initialization keys, assign unique IDs; component order is not a resolution policy.

Persist inventory ownership/amounts/equipped sets through the save integration. Custom runtime charge/cooldown/counters need explicit persistence. Multiplayer supplies network information/bridge access but does not replicate arbitrary effects or mutable module state. Assign authority and synchronize each required damage/spawn/audio/visual result, then verify owner and remote views.

Code can retrieve CharacterItem.GetItemAction(actionID) and CharacterItemAction.GetFirstActiveModule<T>(); use module lifecycle/interfaces for enabled/equipped listeners and cleanup. Observe OnItemUse, OnItemUseComplete, OnShieldImpact, and OnCharacterUpdateItemAbilityParameters through the event system as appropriate. See Character Item, Use, Reload, and Block.