Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassRepresentationSubsystem.h |
Include |
#include "MassRepresentationSubsystem.h" |
Source |
/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Private/MassRepresentationSubsystem.cpp |
bool ReleaseTemplateActor
(
const FMassEntityHandle MassAgent,
const int16 TemplateActorIndex,
AActor * ActorToRelease,
bool bImmediate
)
Release an actor that is matching the TemplateActorIndex
True if actor was released
Parameter |
Description |
---|---|
MassAgent |
is the handle to the associated mass agent |
TemplateActorIndex |
is the template type of the actor to release in case it was successfully spawned |
ActorToRelease |
is the actual actor to release if any |
bImmediate |
means it needs to be done immediately and not queue for later |