kart
One-paragraph description of what this module provides and who consumes it.
kart
One-paragraph description of what this module provides and who consumes it.
Exports
M.exampleFn(arg) -> result— what it does and when to call it.M.exampleValue: type— what value it carries.
Usage
Replace <identity> with the string asset.create returned — this
module's source path with / written as . and each segment's type
suffix dropped, the way a module at /source/lib/thing.module is
lib.thing and one at /source/kit.package/thing.module is
kit.thing.
local M = require("<identity>")
M.exampleFn("foo")
Notes
- Anything callers need to know about THIS module: required runtime ordering, state ownership, side effects.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.kart — the kart slice of Mario Kart OrigoZ. The behaviour lives on the Kart component, which sits on the scene's PlayerPrototype body so every player gets their own kart. This module is the surface the other slices call: it finds the local peer's kart and asks it. Nothing here holds state, so it is safe to call from anywhere, at any time, including before a player has spawned. local K = Core.system("kart") K.boost(2.0, "mushroom") -- an item's boost K.jump(Core.FEATHER_LIFT) -- a feather's lift K.placeOnTrack() -- put the racer on the line K.public() -- read item, lap, speed, charge
localKart( ) → any
The local peer's kart. `isLocalPlayer` is what the component decides (from the layer's local-player handle, the entry point's `player` event, or the fact that a world holding one kart has only one possible answer); before it is decided, a single kart is the only candidate there is.
player( ) → any
The local player's kart entity, or nil before it exists.
examples
local kart = Core.system("kart").player()public( ) → any
The local kart's Kart component, for reading its item, lap and speed.
examples
local speed = Core.system("kart").public().speedboost(seconds: number, source: string?) → void
Fire a boost on the local kart.
| arg | type | description |
|---|---|---|
| seconds | number | How long the boost lasts. |
| source | string? | drift, trick, mushroom or feather. |
examples
Core.system("kart").boost(2.0, "mushroom")jump(speed: number?) → void
Lift the local kart off the ground — what a feather jump is.
| arg | type | description |
|---|---|---|
| speed | number? | Metres per second of lift; defaults to Core.FEATHER_LIFT. |
examples
Core.system("kart").jump(Core.FEATHER_LIFT)placeOnTrack( ) → void
Put the local kart on the active circuit's start line, at rest.
examples
Core.system("kart").placeOnTrack()setLocked(locked: boolean) → void
Hold or release every kart (countdown, menus, after the finish).
| arg | type | description |
|---|---|---|
| locked | boolean | True to hold them where they are. |
examples
Core.system("kart").setLocked(true)held( ) → string
The item string the local kart is holding ("" when empty).
examples
if Core.system("kart").held() == "mushroom" then ... endteleport(pos: { number }, yaw: number?) → void
Put the local kart down at a position, facing a heading, at rest.
| arg | type | description |
|---|---|---|
| pos | { number } | World position {x, y, z}. |
| yaw | number? | Heading in radians. |
examples
Core.system("kart").teleport({ 0, 1, 0 }, 0)mount( ) → void
Slice entry: the kart comes up with the player. This module is the slice's API — it finds the local peer's kart and asks it — so it is what gets registered; nothing here holds state.
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.