five-on-it / packages/sim/src/devices / spawnDevice
Function: spawnDevice()
spawnDevice(
sim,kind,at,options?):number
Defined in: packages/sim/src/devices.ts:195
A device standing at a spot (its base on the ground at y, facing yaw); a safe is spawnSafe.
Parameters
sim
kind
"laptop" | "bomb" | "fuse_box" | "generator" | "workbench" | "car_jack" | "dumpster"
at
options?
DeviceOptions = {}
Returns
number