Frostdev

KilnAPI reference Guide

localCamera (instance registry)

Generated from schema/registry/localCamera.json by tools/registrygen/registrygen.py: edit the schema, never this page.

The local player's camera as this client drew it (kiln.camera's rendered snapshot) and its render-only leases (kiln.camera's LOCAL_VISUAL endpoint: a lens, a shake; the player's input camera and aim never move). Client-owned (owner decision 12): it lives only in the game client's own Gate, a write or action applies there and is never sent; a server refuses it (gate:client_owned).

  • Key: world (one value per world); side: client; version 0.1.0, experimental (KILNX032)
  • Values are live: a write applies at the Gate's next turn (one-time, owned by the mod), a hold is re-applied at its cadence until released. Kiln.Gate: LocalCamera.<Field>; refs: localCamera[<key>].<field>.
Field Type Holds Cadence Saved Notes
position.x float m -10000000..10000000 - - session read-only; Where the newest frame was drawn from: x, world metres.
position.y float m -10000000..10000000 - - session read-only; Where the newest frame was drawn from: y (up), world metres.
position.z float m -10000000..10000000 - - session read-only; Where the newest frame was drawn from: z, world metres.
fov float deg 0..180 - - session read-only; The vertical field of view the newest frame was drawn with, degrees.
leases int 0..65536 - - session read-only; kiln.camera's live leases of every endpoint in this process.
Action Arguments What it does
apply fov (number, optional, 1..179), shakeAmplitude (number, optional, 0.0001..10), shakeFrequency (number, optional, 0.01..100), shakeFalloffMs (int, optional, 0..120000), durationMs (int, 1..120000), priority (int, optional, -1000..1000), blendInMs (int, optional, 0..120000), blendOutMs (int, optional, 0..120000) A render-only camera lease of the calling mod for the local player (a lens, a shake or both), as Kiln.Camera's SetLocal: accepted now, decided at the client's next Pre (Kiln.Camera's events say APPLIED or why not). Receipt: lease (int).
end lease (int, 1..9007199254740991) Ends a camera lease of the calling mod. Receipt: ended (bool).

Enshrouded is a trademark of Keen Games GmbH. Kiln is unofficial.