Public API
Enemy Masses Public API Reference
Core Controller Access
// Access the singleton instance
EnemyMassesCrowdController controller = EnemyMassesCrowdController.Instance;Spawning Agents
Spawn by Faction Index
/// <summary>
/// Spawns agents from a specific enemy crowd faction by index.
/// </summary>
/// <param name="enemyCrowdIndex">Index of the faction in the EnemyCrowds list.</param>
/// <param name="spawnPosition">World position to spawn at.</param>
/// <param name="spawnRotation">Rotation of the spawn group.</param>
/// <param name="count">Number of agents to spawn.</param>
/// <param name="formation">Formation type (Circle, Square, Random, etc.).</param>
/// <param name="formationSpacingOverride">Optional: Override the default formation spacing.</param>
/// <returns>List of spawned agent indices.</returns>
public List<int> SpawnEnemyCrowd(
int enemyCrowdIndex,
Vector3 spawnPosition,
Quaternion spawnRotation,
int count,
FormationType formation = FormationType.Random,
float? formationSpacingOverride = null
)Spawn by Faction Index (Transform)
Spawn by Faction Name
Spawn by Faction Name (Transform)
Despawning & Killing Agents
Kill/Despawn Single Agent
Kill by GPUICrowdInstance
Clear All Agents
Respawn Agent
Navigation & Movement
Set Global Destination
Set Faction Destination (by Index)
Set Faction Destination (by Name)
Set Destination for Spawn Group
Set Destination for Single Agent
Healing & Health
Heal Single Agent
Heal by GPUICrowdInstance
Heal Agents in Radius (AOE)
Get Agent Health
Status Effects
Apply Status Effect (Runtime)
Apply Status Effect (Config Asset)
Apply Status Effect in Radius (AOE)
Remove/Dispel Effects
Query Status Effects
Civil AI
Enable Civil Mode
Disable Civil Mode
Spawn Civil Agent
Despawn Civil Agent
Civil Navigation Commands
Query Methods
Get Active Agents
Get Agents in Radius
Get Agents by Owner (Networking)
Get Alive Agents
Get Agent by GameObject
Global Damage Multipliers
Example Usage
Events
Core Events
Network Events
Event Usage Example
Subsystem Access
Faction Battle Mode
Example
Quick Reference
Category
Method
Description
Networking API Reference
NetworkAuthorityProvider
INetworkAuthorityProvider
INetworkSpawnAuthority
INetworkDamageAuthority
INetworkCommandAuthority
INetworkAuthorityExtended
AntiCheatComponent
Command Data Structures
MoveCommandData
AttackCommandData
StopCommandData
Event Data Structures
SpawnEventData
DamageEventData
DeathEventData
HealthChangeEventData
Networking Enums
DespawnReason
DamageType
DamageRollbackReason
CommandRejectReason
CheatType
HealthChangeReason
Networking Quick Reference
Interface
Purpose
Class
Purpose
Data Structure
Purpose
See Also
RTS Controller API Reference
Controller Access
Properties
Selection Methods
Clear Selection
Select Agents
Select Faction
External Selectables
Command Methods
Request Move Command (Networked)
Request Attack Command (Networked)
Request Stop Command (Networked)
Execute Server Commands
Combat Stance Methods
Events
Selection Events
Command Events
Network Command Events
SelectionChangedEventData
RTS Controller Quick Reference
Category
Method/Property
Description
RTS Camera Controller API Reference
Controller Access
Properties
Preset Methods
Apply Preset
Transition to Preset
Preset Management
Focus & Follow Methods
Bookmark Methods
Camera Control Methods
Direct Camera Manipulation
Events
Camera Controller Quick Reference
Category
Method/Property
Description
Last updated