Skip to main content

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

FieldValue
DisplayFocus Camera On Entity
Categorycamera
AccessScriptCheat
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdyes—Entity to look at
blendfloatno0.4Blend 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
});