Storm Game Framework 2.0.0
User guide
Loading...
Searching...
No Matches
Native held-item integration

This optional C++ integration follows Equip and show the item. The main tutorial's cube is a small project visual driven by equipment. Use the native held-item system when you need presentation actors, semantic attachment rules, multiple held items and presentation lifecycle management.

What the character must supply

The stock tutorial Humanoid exposes inventory, equipment and appearance. It does not implement IStormHeldItemsOwner or initialise a held-items catalogue. Adding a Storm Held Items component in the Blueprint Components panel alone does not complete that integration.

A project C++ character derived from AStormHumanoidCharacter can supply the missing host wiring. Its game module needs StormCharacters, StormCore, StormItems, StormEquipment and StormAppearance, as well as the normal Core, CoreUObject and Engine dependencies.

Host responsibility Public API
Own the coordinator Create UStormHeldItemsComponent as a default subobject.
Expose it to equipment Implement IStormHeldItemsOwner::GetHeldItemsCapability and return the component as TScriptInterface<IStormHeldItems>.
Supply the attachment target Call SetCharacterAttachTarget with the actual character scene component.
Supply authored presentation and appearance Call InitializeHeldItems with UStormHeldItemPresentationCatalog and the existing appearance capability.
Connect settled equipment After initialisation succeeds, call the equipment component's InitializeHeldItemsCapability.

Keep that order explicit and inspect every operation result. Equipment can initialise before the catalogue is ready; the final capability rebind republishes the current equipment projection. A presentation failure is a visual failure and must not silently remove the authoritative item from equipment.

Author the presentation assets

A Storm Held Item Presentation Catalog entry maps the item's archetype ID and presentation tag to an Actor Definition Id, an Initial Attachment Rule Tag and Default When Equipped. New entries use Actor Assembly definitions; the deprecated presentation actor class field is not a fallback.

The presentation actor needs the supported item presentation and attachment configuration. Storm Held Item Attachment nominates its attachment root and rules. The character's appearance form maps a semantic attachment point to an actual socket. Rule tags, form attachment tags and catalogue references must agree.

Item Designer's held preview needs a compatible subject exposing this same held-items capability and attachment target. A working preview on such a subject does not add the capability to another pawn.

Verify the host before extending it

Start with one kit instance and one Main hand presentation. Check equip, unequip, appearance changes, missing presentation assets, actor teardown and replayed equipment notifications. Presentation actors are local and reconstructed from replicated equipment; verify the owner, another client and a dedicated server separately.

First-person viewmodel presentation also needs the first-person item/arms and animation integrations appropriate to the game. A third-person held actor alone does not establish the complete first-person path.

The full contracts and authoring fields are in UStormHeldItemsComponent, UStormHeldItemPresentationCatalog and UStormHeldItemAttachmentComponent. This page describes the integration seams; it is not a replacement for a compiled and verified game-specific host.

Return to the Blueprint equipment chapter.