Garry's Mod Wiki

Revision Difference

Entity:IsMarkedForDeletion#565631

<function name="IsMarkedForDeletion" parent="Entity" type="classfunc"> <description>Returns if the entity is going to be deleted in the next frame. Entities marked for deletion should not be accessed.</description>⤶ <realm>Shared</realm> <description>⤶ Determines if a given Entity is going to be removed at the start of the next tick.⤶ ⤶ This will return `true` for an <page>Entity</page> after <page>ENTITY:Remove</page> is called on it.⤶ </description>⤶ <rets> <ret name="" type="boolean">If the entity is going to be deleted.</ret>⤶ <ret name="" type="boolean">⤶ `true` if the Entity is going to be removed, `false` otherwise.⤶ </ret>⤶ </rets> </function>