camera.focus_entity
Overview
- Points the camera at the given entity by making its actor the view target. Unlike entity.possess this does not change which character the player controls and works for any spawned entity - characters, objects and vehicles alike - so it is the safe choice for inspection. Fails when the entity has no spawned actor, which is the normal state for crowd and pseudo-simulated entities that exist only in the simulation layer. The view target persists until something else changes it, including the game's own camera logic when the player moves or possesses a character.
Metadata
| Field | Value |
|---|---|
| Display | Focus Camera On Entity |
| Category | camera |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | yes | — | Entity to look at |
| blend | float | no | 0.4 | Blend time in seconds [0-10]. 0 snaps instantly |
Returns
- Return shape is not declared for this command.
Usage
await inzoi.cli.execute('camera.focus_entity', {
entity_id: 0,
blend: 0.4, // optional
});