Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/DetourCrowd > API/Runtime/Navmesh/DetourCrowd/dtCrowd > API/Runtime/Navmesh/DetourCrowd/dtCrowd/getActiveAgents
References
| Module | Navmesh |
| Header | /Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourCrowd.h |
| Include | #include "DetourCrowd/DetourCrowd.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/DetourCrowd/DetourCrowd.cpp |
int getActiveAgents
&40;
dtCrowdAgent &42;&42; agents,
const int maxAgents
&41;
Remarks
Gets the active agents int the agent pool. The number of agents returned in `agents_.
Parameters
| Name | Description |
|---|---|
| agents | An array of agent pointers. [(dtCrowdAgent ) maxAgents] |
| maxAgents | The size of the crowd agent array. |