Skip SGF navigation

Module reference

NPC behaviour modules

Find the modules for AI states, actions, senses, movement, combat, squad orders and jobs.

SGF 1.0.1 · Unreal Engine 5.8 · Reviewed

On this page

StormAI

StormAI runs an NPC’s states and applies the rules that move it between them. Create a Storm AI State, give it a tag and set it as the starting state in a Storm AI State Machine Config. Assign the configuration to the NPC’s controller and check that it enters the expected state.

StormAIActions

StormAIActions evaluates an NPC’s available actions and starts one according to the action set’s rules. Make a set with Wait as the first action and assign it to a Run Action Selector task in a state. Add other actions after you have verified that the first action starts.

StormAIActionsEditor

This provides the AI Action Editor and AI Asset Browser. Open an SGF AI Action Set to add, order or configure actions and check the configuration. Use SGF > AI Asset Browser to find related state, senses, threat and engagement assets.

StormAISenses

StormAISenses gathers observations for an NPC. Assign a senses configuration and start with a small area and a filter for one kind of target. Move a test target into and out of range and check which observations the NPC receives.

StormAIThreat

StormAIThreat turns observations into awareness and a current threat candidate. Use a threat configuration to decide what raises interest and how quickly it fades. Test what the NPC remembers when a target disappears and returns.

StormAINavigation

StormAINavigation handles AI movement requests and reports their outcome. Add Unreal navigation coverage to the test map and request a reachable destination. Try an unreachable destination as well so the NPC can respond to a failed move.

StormAISquads

StormAISquads tracks squad membership and leadership and delivers orders to members. Put two NPCs in a squad and issue one order from your game. Check that each member receives it and that the squad can continue after a member leaves.

StormAIEngagement

StormAIEngagement manages which NPCs may take positions or act around a target. Author one engagement layout and rules for how many agents can act. Test two agents against one target and check that a slot becomes available when its occupant leaves.

StormAIAbilities

StormAIAbilities lets NPC actions check and use abilities already granted to the NPC. Give the character one ability, then have an AI action request it. Compare an available use with one refused because the ability is missing or cannot run yet.

StormAICombat

StormAICombat supplies reusable combat actions and the checks that make those actions eligible. Add a combat action to a working action set and give the NPC the target and capabilities the action needs. Test whether it becomes eligible only in the intended situation.

StormAITactics

StormAITactics helps agents find and claim authored tactical points, such as cover positions. Place and tag a point, register the agent and provide its threat context. Check that it can claim the point when reachable and that another agent respects the claim.

StormAITacticsActionsAdapter

This lets an SGF AI action set act on a tactical point chosen by your game. Add the tactical action to a working action set and have the game pass it a specific candidate point and movement setup. Check that the NPC can claim the point, reach it and release the claim when finished.

StormAIWork

StormAIWork lets the game offer a job and an eligible NPC claim it. Have an object publish one job with a location and a required capability, then register two NPCs that can do it. Test that one NPC claims it and that cancellation frees it for another.

StormAIWorkActionsAdapter

This lets an SGF AI action set carry out a specific work offer chosen by your game. Add the work action to the set and connect the agent to your game’s job start and stop logic. Pass it one offer, then check that the NPC reaches the job and stops if the offer is withdrawn.