Skip to main content

build.remove_object

Overview

  • Remove a placed game object from the current site. In build mode the removal goes through the undo/redo command stack with automatic price refund. In play mode the object is destroyed directly and the object's price is refunded to the household wallet. Use build.scan_objects to discover entity IDs.

Metadata

FieldValue
DisplayRemove Placed Object
Categorybuild
AccessScriptCheat
ScopeB1Multicast
TagsExperimental
Aliases

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdyesTarget game object entity ID (from build.scan_objects)

Returns

  • Return shape is not declared for this command.

Usage

await inzoi.cli.execute('build.remove_object', {
entity_id: 0,
});