DeleteUnit¶
DeleteUnit(objects) · DeleteUnitTracked(objects)
Input: objects is one owned object or a dense array.
Description: Requests deletion of those game objects. The tracked form rejects invalid group members as a whole. Cancelling a receipt cannot restore objects after submission. Require an explicit script option and a small object list before calling it.
Output: DeleteUnit returns true for queue admission, otherwise false.
DeleteUnitTracked returns accepted, receipt.
Errors: Wrong Lua argument types raise an argument error. An empty or invalid object group, missing layout, or changed session rejects. A submitted deletion cannot be undone through the receipt. A tracked receipt gives the rejection reason when available.