survival
The `game.survival` module handles player interactions with the environment, including picking up items, opening doors, entering hiding spots, and solving the fuse-and-key puzzle required to escape. It defines the mechanics for environmental engagement and progression towards the…
survival
The game.survival module handles player interactions with the environment, including picking up items, opening doors, entering hiding spots, and solving the fuse-and-key puzzle required to escape. It defines the mechanics for environmental engagement and progression towards the game's objective. Other game slices, such as game.player (to update inventory) or game.screens (to display objectives), will call this module to manage these interactions and their effects on the game state.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game/survival.module — everything the player can touch. The maintenance key, the station fuse, filter canisters and bottles as pickups; the locked maintenance door that only the key opens; the fuse socket at the evacuation stair that only the fuse fits, and the stair it brings back to life; three hiding spots; and the three documents that tell what happened to Rescue Team Four. Built on the engine's own surface: entities, BoxCollider, the Model and Light components, the default input map's `interact` control, and the player's body reached through the scene's local player. Nothing here is a second copy of a rule: the items, the documents, the noise levels and the shared state all come from `game.core.module`, and what the slice does is announced on Core's bus so the creatures, the screens and the soundscape hear it. Every entry point is guarded. `update` warns once and carries on rather than raising into the entry point.
warnOnce(msg: ?) → void
| arg | type | description |
|---|---|---|
| msg | ? |
material(name: ?) → void
| arg | type | description |
|---|---|---|
| name | ? |
clip(name: ?) → void
| arg | type | description |
|---|---|---|
| name | ? |
sound(name: ?, volume: ?, pitch: ?) → void
One non-spatial source at the player's ear: everything this slice sounds is happening at arm's length, so it does not need placing in the world.
| arg | type | description |
|---|---|---|
| name | ? | |
| volume | ? | |
| pitch | ? |
makeNoise(pos: ?, loudness: ?, kind: ?) → void
Noise: what the creatures hear. Core's bus is the game's own vocabulary; the creatures slice converts it to aiKit's bus and nothing else may.
| arg | type | description |
|---|---|---|
| pos | ? | |
| loudness | ? | |
| kind | ? |
find(name: ?) → void
Spawning. Names are this slice's own ("sv_"), and a stale one from an earlier load is replaced rather than stacked.
| arg | type | description |
|---|---|---|
| name | ? |
fresh(name: ?) → void
| arg | type | description |
|---|---|---|
| name | ? |
tintOf(opts: ?) → void
| arg | type | description |
|---|---|---|
| opts | ? |
prop(name: ?, model: ?, pos: ?, scale: ?, opts: ?) → void
A prop: one mesh, the station's material, a tint where it needs its own colour. `opts.collide` gives it a box the player cannot walk through.
| arg | type | description |
|---|---|---|
| name | ? | |
| model | ? | |
| pos | ? | |
| scale | ? | |
| opts | ? |
glow(name: ?, pos: ?, colour: ?, intensity: ?, radius: ?, kind: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| pos | ? | |
| colour | ? | |
| intensity | ? | |
| radius | ? | |
| kind | ? |
bodyEntity( ) → void
The player's body and camera, resolved every frame (they are spawned per peer and re-established across a mode flip).
rigFor(body: ?) → void
| arg | type | description |
|---|---|---|
| body | ? |
forwardOf(rig: ?, body: ?) → void
| arg | type | description |
|---|---|---|
| rig | ? | |
| body | ? |
addTarget(t: ?) → void
The world this slice builds on top of the station.
| arg | type | description |
|---|---|---|
| t | ? |
dropTarget(t: ?) → void
| arg | type | description |
|---|---|---|
| t | ? |
pickup(id: ?, label: ?, pos: ?, opts: ?) → void
| arg | type | description |
|---|---|---|
| id | ? | |
| label | ? | |
| pos | ? | |
| opts | ? |
use(self: ?) → void
| arg | type | description |
|---|---|---|
| self | ? |
document(docId: ?, pos: ?, rot: ?, name: ?) → void
| arg | type | description |
|---|---|---|
| docId | ? | |
| pos | ? | |
| rot | ? | |
| name | ? |
use( ) → void
buildDoor( ) → void
use(self: ?) → void
| arg | type | description |
|---|---|---|
| self | ? |
buildSocket( ) → void
use(self: ?) → void
| arg | type | description |
|---|---|---|
| self | ? |
hidingSpot(name: ?, label: ?, verb: ?, anchor: ?, look: ?) → void
A spot is a place the body is put into and held in: the camera keeps its look, the body cannot walk out, and aiKit is told the player is not there. What a hunting infected does with that is aiKit's own concealment, the same rule a guard in the library uses.
| arg | type | description |
|---|---|---|
| name | ? | |
| label | ? | |
| verb | ? | |
| anchor | ? | |
| look | ? |
use( ) → void
buildHiding( ) → void
hide(name: ?) → void
Hiding, in and out.
| arg | type | description |
|---|---|---|
| name | ? |
unhide( ) → void
throwBottle(body: ?, rig: ?) → void
Bottles: the loudest thing the player can put somewhere they are not.
| arg | type | description |
|---|---|---|
| body | ? | |
| rig | ? |
landBottle(shot: ?) → void
| arg | type | description |
|---|---|---|
| shot | ? |
tickShots(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
buildFurniture( ) → void
The station's own props: the bench the fuse waits on, and the papers.
buildDocuments( ) → void
buildPickups( ) → void
label(text: ?, style: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| style | ? |
promptTree(keyText: ?, text: ?, notice: ?, locked: ?, hint: ?) → void
| arg | type | description |
|---|---|---|
| keyText | ? | |
| text | ? | |
| notice | ? | |
| locked | ? | |
| hint | ? |
setPrompt(keyText: ?, text: ?, notice: ?, locked: ?, hint: ?) → void
| arg | type | description |
|---|---|---|
| keyText | ? | |
| text | ? | |
| notice | ? | |
| locked | ? | |
| hint | ? |
hidePrompt( ) → void
usePressed( ) → void
Input. The engine's own `interact` control: E, a pad's west button, or the on-screen button on a phone.
acquireInput( ) → void
tickAnims(dt: ?) → void
Per frame.
| arg | type | description |
|---|---|---|
| dt | ? |
nearest(body: ?) → void
| arg | type | description |
|---|---|---|
| body | ? |
tick(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
start(ctx: ?) → void
The contract.
| arg | type | description |
|---|---|---|
| ctx | ? |
step(name: ?, fn: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| fn | ? |
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
onPlayer(player: ?) → void
| arg | type | description |
|---|---|---|
| player | ? |
debugState( ) → void
What the slice is holding, for a probe in the shell to read.
stop( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
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.