natiny.pivot.destroy

Lua
natiny.pivot.destroy(pivot)

Destroys a pivot and all entities parented below it.

Parameters

Name Type Description
pivot number Pivot handle from natiny.pivot.create

Example

Lua
natiny.pivot.destroy(turret)

Notes

  • Destruction is recursive. Each descendant is destroyed according to its entity type and releases its owned resources.