Gameplay
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->
Gameplay
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->TODO: describe this component.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game/Gameplay.component/init.luau THE MISSING FLOOR — the player's hands. Everything between the player and the building: * the INTERACTOR — a raycast out of the player's eye plus the nearest Interactable in range, the prompt on the bus, and [E] on its rising edge * DOORS — a leaf on its hinge, swinging over about four fifths of a second * THE LIFT — the central mechanic: the call, the doors, the ride, the indicator, and the misbehaviour that grows with the story * THE TORCH — F, and the brief failures the dread slice can ask for * MOVEMENT COST — running is loud, crouching is quiet * CHECKPOINTS — a new floor is a new place to come back to It reads `game/world.module` for the building's layout (where the shaft is, which entity is the cab, which pivot is which door) and `game/core.module` for the run state. Everything it tells the other systems it tells on the bus.
forwardOf(ent: ?) → void
The world direction an entity faces: -Z rotated by its rotation quaternion.
| arg | type | description |
|---|---|---|
| ent | ? |
dist2(a: ?, b: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| b | ? |
localRig( ) → void
The live camera rig — the clone the engine made for this client, not the deactivated prototype.
avatar( ) → void
torch( ) → void
registerDoors( ) → void
swingDoor(id: ?) → void
| arg | type | description |
|---|---|---|
| id | ? |
cab( ) → void
cabY(n: ?) → void
| arg | type | description |
|---|---|---|
| n | ? |
liftDoorLeaves(n: ?) → void
| arg | type | description |
|---|---|---|
| n | ? |
lightIndicator(n: ?) → void
The indicator on storey n: its two digit windows light, the rest stay dark.
| arg | type | description |
|---|---|---|
| n | ? |
Build_matFor(on: ?) → void
| arg | type | description |
|---|---|---|
| on | ? |
setLiftDoors(n: ?, open: ?) → void
| arg | type | description |
|---|---|---|
| n | ? | |
| open | ? |
shouldMisfire( ) → void
liftArrive( ) → void
callLift(floorWanted: ?) → void
| arg | type | description |
|---|---|---|
| floorWanted | ? |
stepLift(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
target( ) → void
What is the player looking at? A collider hit wins; failing that, the nearest Interactable within reach. Returns the component ref or nil.
wire( ) → void
awake( ) → void
start( ) → void
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
onDestroy( ) → void
Build_rotY(deg: ?) → void
Yaw helper, resolved once from a literal.
| arg | type | description |
|---|---|---|
| deg | ? |
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.
Inside
2 problems across 1 itemagent_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.