Navigation
API > API/Plugins > API/Plugins/MassCrowd > API/Plugins/MassCrowd/UMassCrowdSubsystem
References
| Module | MassCrowd |
| Header | /Engine/Plugins/AI/MassCrowd/Source/MassCrowd/Public/MassCrowdSubsystem.h |
| Include | #include "MassCrowdSubsystem.h" |
| Source | /Engine/Plugins/AI/MassCrowd/Source/MassCrowd/Private/MassCrowdSubsystem.cpp |
int32 AcquireWaitingSlot
&40;
const FMassEntityHandle Entity,
const FVector & EntityPosition,
const FZoneGraphLaneHandle LaneHandle,
FVector & OutSlotPosition,
FVector & OutSlotDirection
&41;
Remarks
Acquires a slot from a specified waiting lane. Nearest vacant slot to EntityPosition is returned. Index of the slot, or INDEX_NONE if no slots are available or if the lane is not a waiting lane.
Parameters
| Name | Description |
|---|---|
| Entity | Requesting entity |
| EntityPosition | Position of the entity. |
| LaneHandle | A handle to a lane with waiting data. |
| OutSlotPosition | Position associated to the acquired slot. |
| OutSlotDirection | Facing direction associated to the acquire slot. |