Garry's Mod Wiki

Entity:IsMarkedForDeletion

  boolean Entity:IsMarkedForDeletion()

Description

Returns if the entity is going to be deleted in the next frame. Entities marked for deletion should not be accessed.

Returns

1 boolean
If the entity is going to be deleted.