Navigation
API > API/Plugins > API/Plugins/MassActors > API/Plugins/MassActors/UMassActorSpawnerSubsystem > API/Plugins/MassActors/UMassActorSpawnerSubsystem/GetNextRequestToSpawn
References
| Module | MassActors |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassActors/Public/MassActorSpawnerSubsystem.h |
| Include | #include "MassActorSpawnerSubsystem.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassActors/Private/MassActorSpawnerSubsystem.cpp |
virtual FMassActorSpawnRequestHandle GetNextRequestToSpawn
(
int32 & InOutHandleIndex
) const
Remarks
Retrieve what would be the next best spawning request to spawn, can be overridden to have different logic Default implementation is the first valid request in the list, no interesting logic yet the next best handle to spawn.
Parameters
| Name | Description |
|---|---|
| InOutHandleIndex | used to start the search in subsequent locations. Also the index ensures the same handle won't get returned twice in a row. InOutHandleIndex being INDEX_NONE indicates this is the first run, so all handles are to be considered. If it's a valid index then we iterate all but one to not even consider the handle indicated by InOutHandleIndex. |