b3dFreeEntity

Destroys an entity and all its children, freeing associated resources. Takes entity (handle to any 3D entity type). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Void

Quick Summary

Destroys an entity and all its children, freeing associated resources. Takes entity (handle to any 3D entity type). Returns nothing.

Technical Exegesis...

Destroys an entity and all its children, freeing associated resources. Takes entity (handle to any 3D entity type). Returns nothing. Validates entity exists in g_entities map - silently returns if not found. Recursively frees all children first (processes children.back() repeatedly until children empty). Removes entity from parent's children list if parented. Frees type-specific data based on entity.

Example

Example.bam
; No example implemented yet