Skip to main content

Encounter Manager

The Encounter Manager in idStudio is an essential tool used for controlling all combat scenarios in single-player levels. It is the primary tool responsible for any type of AI interaction, spawning, and combat in the game. The Encounter Manager provides features for creating combat encounters, ranging from simple fights to orchestrating very complex battles.

Encounter Manager Interface​


encounter manager interface

Section NameDescription
1Script SectionDisplays your encounter script as you add commands.
2Comment SectionUse this section to describe specifics about the encounter (useful when searching through several encounters).
3Properties SectionDefine properties for each command (will populate with a command selected).
4Commands SectionAvailable commands that can be dragged into the Script section (click to open each topic).

Command Types​

Trigger CommandsVarious trigger commands to activate a target.
System CommandsEncounter Manager-specific system commands - affect how the encounter system works.
Combat Grouping CommandsGranularity in how combat is grouped and controlled.
Wait CommandsLogic commands – telling the script to wait until a specific condition is met.
Spawn CommandsCommands for the live creation of AI.

Encounter Entities​


To setup a basic encounter, you’ll need to add the following entities:

EntityMenu pathDescription
Encounter ManagerNew Entity → Encounter → ManagerControls the contents of the encounter
Commit TriggerNew Entity → Encounter → Trigger → CommitControls when the encounter will start
Exit TriggerNew Entity → Encounter → Trigger → ExitControls when to force an encounter to end
Spawn Group ParentNew Entity → Encounter → Spawn Group → ParentControls which AI can be spawned in (holds a list of all potential AI)
Spawn Group - Zones & CylindersNew Entity → Encounter → Spawn Group → Zone/CylinderControls a group of Spawn Targets
Spawn TargetNew Entity → Target → SpawnWhere an AI can be spawned from
AINew Entity → AI → [SELECT AN AI]The AI that will be spawned