Skip SGF navigation

Practical guide

Connect an input, interaction or attack

Turn a player input into one game action and decide what should happen when it succeeds.

SGF 1.0.1 · Unreal Engine 5.8 · Reviewed

When you finish

A test action works when allowed and gives a clear result when it is refused.

On this page

Start with one action, such as opening a door. In Unreal, use a Gameplay Tag as a consistent name for an action or rule. SGF uses those names to connect input and gameplay configuration.

Map a control to an action

Use StormInput to associate a gameplay tag with an Enhanced Input action. Add the action to the mapping context used by the player, then connect it to the behaviour in your project. For an Interact action, test that the input works during gameplay and stops reaching the game when you open a blocking menu.

Choose an object and interact

StormTargeting can find and rank candidate targets. Decide what counts as a candidate for your action and test it with two nearby objects. StormInteraction checks and dispatches a request for the chosen object. Give the door an interaction the game understands, then test it up close and beyond the distance you allow. Your game defines what the door does when the interaction succeeds.

Give a character an ability

StormAbilities builds on Unreal’s Gameplay Ability System. Create or choose one ability, put it in an ability set and grant that set to the character. Connect the appropriate action to the granted ability. Test the action with and without the grant and check any cost or restriction defined by your game.

Detect a melee hit

StormCombat tracks what an attack touches during its active window. Begin with one attack and a trace profile that fits its weapon or body motion. Test a hit, a miss and a friendly target. Use StormTeams for faction relationships and decide how your game turns a confirmed contact into damage, a block or another result.