Practical guide
Coordinate NPCs in a fight or on a job
Add group orders, combat positions or shared jobs to NPCs that can already act on their own.
SGF 1.0.1 · Unreal Engine 5.8 · Reviewed
You can test two NPCs competing for the same position or job and observe how it is assigned.
On this page
Start with two NPCs that can already sense and move. Decide whether they need a shared order, space to fight around a target, a useful position in the level or a job to claim.
Give a group an order
StormAISquads manages group membership, leadership and order delivery. Put the two agents in the same squad and have your game issue a simple shared order. Let each agent’s behaviour decide how to carry it out. Remove one member and check that the remaining member still responds.
Share space around a target
StormAIEngagement controls which agents can take positions or act around a target. Start with one engagement layout and a rule for how many agents may act. StormAICombat supplies selectable combat actions, and StormAIAbilities lets those actions check and use abilities already granted to the character. Test one attacker before adding the second and check that an agent gives up its place when it loses the target.
Let NPCs claim a position or job
- Use StormAITactics for authored positions such as a cover spot. Tag one location with its intended use, then test whether an eligible agent can reach and claim it. The tactics action connection makes this choice available to the action selector.
- Use StormAIWork when a world object or game system offers a job, such as tending a station. Your project publishes the job and its requirements, and an eligible NPC claims it. The work action connection lets that claim feed an AI action. Test two agents competing for one job and check that it becomes available again after a cancellation.
Tactics and work require project integration to register participants, provide context and handle outcomes. Begin with one test position or offer before wiring them into a larger encounter.