game_components
5 public commands in this category.
add_game_component
Add a pre-built game component (e.g., CharacterController, Health, Collectible) to an entity
Scope:
scene:write. Token cost: 0.- componentType string (required)
- Type of game component to add
- entityId string (required)
- Target entity ID
- properties object (optional)
- Optional property overrides (uses defaults if omitted)
get_game_components
Get all game components on an entity
Scope:
scene:read. Token cost: 0.- entityId string (required)
- Entity ID to query
list_game_component_types
List all available game component types with defaults
Scope:
scene:read. Token cost: 0.remove_game_component
Remove a game component from an entity
Scope:
scene:write. Token cost: 0.- componentName string (required)
- Name of component to remove
- entityId string (required)
- Target entity ID
update_game_component
Update properties of an existing game component
Scope:
scene:write. Token cost: 0.- componentType string (required)
- Type of game component to update
- entityId string (required)
- Target entity ID
- properties object (required)
- Property values to update