xhookLua
Game

recorder

Controls the Kreedz movement recorder: start, stop, discard and query takes.

Functions

recorder.is_recording

recorder.is_recording() -> boolean

true while a take records.

recorder.is_playing

recorder.is_playing() -> boolean

true while a run plays back.

recorder.start

recorder.start([name]) -> true | false, reason
NameTypeDescription
nameoptionalstringRun name for the take. Default next free "run N".

Starts recording a take as a new run.

Returns true, or false plus reason

  • Reasons: "playing", "moving", "stamina", "unavailable".
  • While already recording, returns true and ignores name.

recorder.stop

recorder.stop() -> string | nil

Stops and saves the take.

Returns saved run name; nil if idle

recorder.discard

recorder.discard() -> boolean

Stops the take without saving.

Returns true if a take was dropped

recorder.info

recorder.info() -> table

Recorder state snapshot.

Returns table (see fields)

Fields

recorder.info() table

NameTypeDescription
recordingboolean
playingboolean
runstringActive run name.
framesintegerFrames in the active run or take.
secondsnumberLength of the active run or take.
recorder ยท Lua API ยท xhook