Skip to content

five-on-it / packages/world/src/level / VehicleSpawnerDef

Interface: VehicleSpawnerDef ​

Defined in: packages/world/src/level.ts:554

A vehicle spawner of the level (GAME_DESIGN §5.5): a parking bay where a car stands, of a class or of a mix it goes through in turn, owned by nobody or an NPC, locked unless it says not, its lock answering to a key's tag; once the car is gone (driven off, wrecked, taken away) another is put there respawn seconds later (never with 0). A dormant spawner's car (a parked car of a car park, a drive, a dealer's yard) dozes once it has settled: a still body the step does not simulate until something touches it, hurts it or gets in (@foi/sim's dormant.ts), its bay refilled only with no player near. A wreck spawner's car stands wrecked (a rusty abandoned car): it can be shoved and set alight, never driven. Not a placement: the server parks the cars.

Properties ​

classes ​

classes: string[]

Defined in: packages/world/src/level.ts:566

The vehicle classes by name, one at least: a mix is gone through in turn.


dormant? ​

optional dormant?: boolean

Defined in: packages/world/src/level.ts:576

Its cars doze once settled, until touched (see above); absent for a car always simulated.


key ​

key: string

Defined in: packages/world/src/level.ts:572

The tag the key of its cars answers to (key:vehicle:<name> unless the block says).


locked ​

locked: boolean

Defined in: packages/world/src/level.ts:570

Whether its cars stand locked.


name ​

name: string

Defined in: packages/world/src/level.ts:556

The node's name in the editor.


owner ​

owner: SpawnerOwner

Defined in: packages/world/src/level.ts:568

Who its cars belong to.


respawn ​

respawn: number

Defined in: packages/world/src/level.ts:574

Seconds after a car is gone before the next stands there; 0 for never.


wreck? ​

optional wreck?: boolean

Defined in: packages/world/src/level.ts:578

Its cars stand wrecked, to be shoved and burned, never driven; absent for whole ones.


x ​

x: number

Defined in: packages/world/src/level.ts:558

The middle of the bay, on its floor (m).


y ​

y: number

Defined in: packages/world/src/level.ts:560

The floor (m).


yaw ​

yaw: number

Defined in: packages/world/src/level.ts:564

Which way the car faces (rad, 0 faces +z).


z ​

z: number

Defined in: packages/world/src/level.ts:562

The middle of the bay, on its floor (m).