Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AActor
Description
Destroy this actor. Returns true if the actor is destroyed or already marked for destruction, false if indestructible. Destruction is latent. It occurs at the end of the tick.
| Name | Destroy |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include Path | #include "GameFramework/Actor.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Actor.cpp |
bool Destroy
(
bool bNetForce,
bool bShouldModifyLevel
)
true if destroyed or already marked for destruction, false if indestructible.
Parameters
| Name | Remarks |
|---|---|
| bNetForce | [opt] Ignored unless called during play. Default is false. |
| bShouldModifyLevel | [opt] If true, Modify() the level before removing the actor. Default is true. |