Skip to content

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 ​

SimWorld

kind ​

"laptop" | "bomb" | "fuse_box" | "generator" | "workbench" | "car_jack" | "dumpster"

at ​

SpawnPoint

options? ​

DeviceOptions = {}

Returns ​

number