llms.txt: machine-readable documentation index. Markdown version of this page is also available.

Ninja Bear Studio Plugins Help

Build a Branching Combo

Give one opening swing two possible follow-ups. A second light press continues the chain, a heavy press branches, and waiting ends the combo. Start with a working melee ability.

Prepare the three moves

  1. Make opening, light follow-up, and heavy follow-up versions of your attack ability. Give each a different identifying ability tag and montage. Put a Combo Window notify state late in the opening montage. Leave the two final montages without a follow-up window.

  2. Add NinjaCombatComboManagerComponent to the character. Implement GetComboManagerComponent on the Combat System Interface and return that component.

Wire the choice in the Combo Tree

  1. Create a State Tree with the Combat Combo schema. Add the Combo State evaluator and bind its state to the context. Add an opening state with the Activate Combo Ability task. Bind the Combo Manager and supply the opening move's ability tag.

  2. Create two sibling follow-up states with the same task and their respective ability tags. On the opening state, add an event transition for Combat.Event.Combo.Attack.Primary to the light follow-up and another for Combat.Event.Combo.Attack.Secondary to the heavy one. Add On State Completed → Tree Succeeded for an uncontinued move and for each ending.

  3. Make a CombatAbility_Combo Blueprint. Assign the tree and add all three attacks to Ability Classes. Grant the Combo Ability to the character. Activate it on the first press. During an open window, send the primary or secondary gameplay event to the character's ability system.

Combo ability holding the State Tree and the abilities used by its states

For an on-screen timing prompt, use BindToComboWindowChangedDelegate on the combo manager. Hide the prompt when the window closes. Use BindToComboFinishedDelegate to observe completion. On the stock manager, the native OnComboWindowChanged delegate lets C++ listeners react to each opening and closing window. Combat and Input covers input-action mapping and buffering.

Try It in Play

Try the opening move three times with input buffering off. An early follow-up should not advance the chain. A light press in the window should play the light follow-up, and a heavy press in the same window should play the other montage. Let the opening move finish once and verify the next press starts a fresh chain.

25 November 2026