AActor::Destroy

Syntax

bool Destroy
(
    bool bNetForce,
    bool bShouldModifyLevel
)

Remarks

Destroy this actor. Returns true the actor is destroyed or already marked for destruction, false if indestructible. Destruction is latent. It occurs at the end of the tick.

Returns

true if destroyed or already marked for destruction, false if indestructible.

Parameters

Parameter

Description

bNetForce

[opt] Ignored unless called during play. Default is false.

bShouldModifyLevel

[opt] If true, Modify() the level before removing the actor. Default is true.

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/Actor.h

Source

Runtime/Engine/Private/Actor.cpp