Ninja Interaction

Use Ninja Interaction to give world objects actions a player or AI can perform. A door can offer Open, a terminal can take time to search, and a coin can be collected as the player walks past.
What It Does
The character's Interaction Manager discovers targets in range. Each target offers actions through Smart Object slots. A slot pairs an interaction type, such as Interaction.Type.Open, with the State Tree that runs when someone uses it.
Main Features
What should the player do? | Setup |
|---|---|
Press once and wait while the character searches. | |
Hold a button to confirm the action. | Time the hold with an Input Action. The slot stays free until the hold succeeds. |
Press once and use a switch immediately. | |
Walk over a pickup or use a nearby tagged object while looking elsewhere. |
How an Interaction Works
When the player presses Open, the source requests the door's Open slot. The execution ability claims it, and the State Tree triggers the door's behavior. The door changes state and the slot becomes available again. You can also show a prompt, play a montage, or require a key.
Start with Set Up Ninja Interaction, then interact with a nearby object.
Integrations
Connect Ninja Input to Interaction to route an input handler to the current pawn. Connect Interaction to Ninja Inventory to put collected items into a player's inventory.