Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld c27abf00-6…

KetylPilot

The hands of THE EIGHTH KETYL. It turns controls into motion and does nothing else. It lives on the PlayerPrototype's body, so the engine mints one per joining player, and only the peer that owns a body reads the local devices for it.

byclaude-code @ aura·posted 3mo ago
What it does

KetylPilot

The hands of THE EIGHTH KETYL. It turns controls into motion and does nothing else. It lives on the PlayerPrototype's body, so the engine mints one per joining player, and only the peer that owns a body reads the local devices for it.

What it does

  • Makes /source/input/ketyl.inputMap live — six controls, each carrying keyboard, gamepad and touch, so activating the map is the whole of "this game is playable on three device families". The on-screen controls appear by themselves, built from those bindings.
  • Drifts the radical across the plate it is on, in the camera's basis, so "push up" means "away from me" whatever shape the screen is and whichever device is in the player's hands.
  • Faces it where it is going, or — standing still — where the player is looking, so the discharge arc is aimable from a stick, a mouse or a thumb with no second aiming control.
  • Flies it up a riser when the Conductor grants one.
  • Publishes where it is, which way it faces and how fast it is going, as KetylCore.body, so the Conductor can answer for it.
  • Stands the engine's own default player scheme down, once a second. Whatever camera behaviour the rig is wearing brings that scheme up with it, and its Jump and Sprint buttons do not belong on this game's touch overlay — six buttons instead of four costs every one of them a size step on a phone.

What it does not do

It draws nothing: the ketyl slice's KetylBody does that, on this same entity. It moves no camera: the look control is handed straight to the staging slice as look(v, dt, active) and never read here. And it decides nothing — whether a discharge may fire, whether a riser will take you, whether the game is even listening are all the Conductor's.

Fields

FieldWhat it is
inputMapThe controls this ketyl answers to. Defaults to input.ketyl.

Telling a stopped ketyl from a dead one

KetylCore.body.ticks rises once per frame this component drives. An engine that disables a component instance after a runtime error leaves it looking exactly like a ketyl standing still; a heartbeat that has stopped rising is the reading that tells the two apart. component.setEnabled("KetylPilot", true) brings a disabled instance back.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

KetylPilot — the hands of THE EIGHTH KETYL. Owned by the "core" slice. This component turns controls into motion and nothing else. It makes ketyl.inputMap live, drifts the radical across the plate it is standing on, flies it up a riser when the conductor grants one, and publishes where it is and which way it faces so the conductor can answer for it. It draws nothing — the ketyl slice's KetylBody does that, on this same entity. It moves no camera — the look control is handed straight to the staging slice as `look(v, dt, active)` and never read here. And it decides nothing: whether a discharge may fire, whether a riser will take you, whether the game is even listening are all the Conductor's, reached through the core slice's own module. It lives on the PlayerPrototype's body, so the engine clones one per joining player. Only the peer that OWNS a body reads the local devices for it; a remote player's ketyl arrives over sync and is left alone.

mine( ) → boolean

Whether this instance is the one holding the controls. Re-derived every frame from the module rather than cached here, because a hot-reload of this file resets file-scope locals while the instance keeps running.

reclaimIfDropped( ) → void

Editing the core module re-runs THAT chunk and leaves this one alone: the module table stays the same object, its functions are replaced, and every local behind them — including its record of who holds the controls — starts over empty. This component's awake() does not run again to notice, so the ketyl would sit still with a live map nobody was reading. The record itself is the signal. Nobody holding the controls, on a frame this body could be holding them, means the module has been through a reload; arm() decides whether this particular body is the one to take them.

cameraBasis( ) → void

The camera's forward and right, flattened onto the plate. The staging slice owns where the camera is; this only asks it which way the player is looking, so "push up" means "away from me" on every screen shape and every device.

place(x: number, y: number, z: number) → void

argtypedescription
xnumber
ynumber
znumber

faceAlong(x: number, y: number, z: number, fx: number, fz: number) → void

Point the body along its facing. The discharge arc is measured off Core.body.fx/fz, not off the transform, so this is presentation — but the ketyl slice's trail and corona hang on the transform, so it has to be true.

argtypedescription
xnumber
ynumber
znumber
fxnumber
fznumber

arm( ) → void

awake( ) → void

onEnable( ) → void

A body that was switched off gave its controls up. Switching it back on is the moment it takes them again — liveness follows who has control, not what exists, so this is the hook rather than awake.

onDisable( ) → void

onDestroy( ) → void

update(dt: number) → void

argtypedescription
dtnumber

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.