Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/dtCrowd
Description
Removes the agent from the crowd.
The agent is deactivated and will no longer be processed. Its dtCrowdAgent object is not removed from the pool. It is marked as inactive so that it is available for reuse.
| Name | removeAgent |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourCrowd.h |
| Include Path | #include "DetourCrowd/DetourCrowd.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/DetourCrowd/DetourCrowd.cpp |
void removeAgent
(
const int idx
)
Parameters
| Name | Remarks |
|---|---|
| idx | The agent index. [Limits: 0 <= value < getAgentCount()] |