Skip to main content

build.set_color

Overview

  • Change the color of a game object. Supports hex (#FF0000) or named colors (red, blue, green, white, black, yellow, cyan, magenta, orange, pink, brown, gray). If part_index is omitted, applies to all parts.

Metadata

FieldValue
DisplaySet Color
Categorybuild
AccessScriptCheat
ScopeB1Multicast
TagsExperimental
Aliases

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdyesTarget game object entity ID
colorstringyesColor value: hex (#0000FF) or name (blue)
part_indexintnoPart index to apply to (default: all parts)

Returns

  • Return shape is not declared for this command.

Usage

await inzoi.cli.execute('build.set_color', {
entity_id: 0,
color: '',
part_index: 0, // optional
});