smartzoi.enqueue_composite_coop_result
Overview
- Simulates an SLM result for a SmartZoi Coop action with selected target entity and Coop role assignments.
Metadata
| Field | Value |
|---|---|
| Display | Enqueue SmartZoi Composite Coop Result |
| Category | smartzoi |
| Access | ScriptCheat |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Owner character entity ID (default: possessed) |
| interaction_bag_id | name | yes | — | Coop interaction bag ID |
| target_entity_id | entityId | yes | — | Selected target entity ID |
| target_object_entity_id | entityId | no | — | Alias for target_entity_id when target is a GameObject |
| role_assignments | string | yes | — | Selected Coop role assignments. Example: Main:123,Sub:456 |
| target_entity_type | string | no | GameObject | Target entity type: GameObject or Character. |
| target_object_name | string | no | — | Optional selected object name from the SLM result. |
| target_character_name | string | no | — | Optional selected character name from the SLM result. |
| reason | string | no | — | Optional SmartZoi reason text. |
Usage
await inzoi.cli.execute('smartzoi.enqueue_composite_coop_result', {
entity_id: 0, // optional
interaction_bag_id: '',
target_entity_id: 0,
target_object_entity_id: 0, // optional
role_assignments: '',
target_entity_type: 'GameObject', // optional
target_object_name: '', // optional
target_character_name: '', // optional
reason: '', // optional
});