Skip to content

DestroyBuilding

DestroyBuilding(objects)

Input: objects is one object or a dense array.

Description: Alias for DeleteUnit; it does not validate that the objects are buildings. It has the same boolean result and deletion risk. Use DeleteUnitTracked if transport evidence is needed.

Output: DestroyBuilding returns true for queue admission, otherwise false.

Errors: Wrong Lua argument types raise an argument error. The same object, layout, and session failures as DeleteUnit reject. This alias does not require building objects. A tracked receipt gives the rejection reason when available.