five-on-it / apps/level-editor/src/scripts/blocks/spawn
apps/level-editor/src/scripts/blocks/spawn
Marks a node of the editor scene as a spawn point: where a car is placed, the arrow's nose being its heading; never scaled, turned with yaw only, 1.2 m up for a car. Its role says who comes out there: the players (empty, or players), the police's cars (police), the ambient traffic (traffic), a mission's groups of enemies (guards), or a player coming back after going down (hospital). The library's block:spawn carries it: place instances of that mesh for npm run level:export to read.