Recipe 3: Unlock double jump with a pickup
Goal: the hero starts without a double jump and gets it from a pickup. Route: any.
Steps
- On your character, untick Can Double Jump (Corridor | Abilities; on Option A: 5. Abilities > Can Double Jump on the Corridor Hero component).
- Make a pickup: a Blueprint actor with a box that, on On Actor Begin Overlap, casts the other actor to your character and calls Set Ability Enabled (Ability = Double Jump, Enabled = true). A plain overlap box or the kit's Corridor Hint Trigger works as the trigger.
- Show a message with the HUD's Show Hint (duration, text) in the same graph.
Variants: switch on Triple Spin (the Triple Spin Boolean, settable at run time); unlock Wall Run after a boss by calling Set Ability Enabled from the boss director's On Fight Won.
You should see
- A second press in the air does nothing before the pickup; after it, the second jump adds +2.1 m.
Saving the unlock
The kit does not save ability switches. Keep the eleven Booleans in your own Save Game and call Set Ability Enabled for each at the start of the level.
If it does not work
- The cast fails: the overlapping actor is not your character class.
- On Option A the Corridor Hero component forwards to the character only when it is a Corridor Character; call the node on the component.