dtCrowd::getActiveAgents

Gets the active agents int the agent pool.

Windows
MacOS
Linux

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

Syntax

int getActiveAgents
(
    dtCrowdAgent ** agents,
    const int maxAgents
)

Remarks

Gets the active agents int the agent pool.

Returns

The number of agents returned in `agents_.

Parameters

Parameter

Description

agents

An array of agent pointers. [(dtCrowdAgent ) maxAgents]

maxAgents

The size of the crowd agent array.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss