five-on-it / packages/world/src/level / VehicleSpawnerDef
Interface: VehicleSpawnerDef
Defined in: packages/world/src/level.ts:531
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). Not a placement: the server parks the cars.
Properties
classes
classes:
string[]
Defined in: packages/world/src/level.ts:543
The vehicle classes by name, one at least: a mix is gone through in turn.
key
key:
string
Defined in: packages/world/src/level.ts:549
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:547
Whether its cars stand locked.
name
name:
string
Defined in: packages/world/src/level.ts:533
The node's name in the editor.
owner
owner:
SpawnerOwner
Defined in: packages/world/src/level.ts:545
Who its cars belong to.
respawn
respawn:
number
Defined in: packages/world/src/level.ts:551
Seconds after a car is gone before the next stands there; 0 for never.
x
x:
number
Defined in: packages/world/src/level.ts:535
The middle of the bay, on its floor (m).
y
y:
number
Defined in: packages/world/src/level.ts:537
The floor (m).
yaw
yaw:
number
Defined in: packages/world/src/level.ts:541
Which way the car faces (rad, 0 faces +z).
z
z:
number
Defined in: packages/world/src/level.ts:539
The middle of the bay, on its floor (m).