five-on-it / packages/sim/src/zones / spawnZone
Function: spawnZone()
spawnZone(
sim,kind,at,owner?,options?):number
Defined in: packages/sim/src/zones.ts:92
Makes a zone of kind at a point on the ground, by the client owner (0 for an NPC or the police), its reach and its life its kind's unless said; returns its entity.
Parameters
sim
kind
"smoke" | "fire" | "gas" | "foam"
at
x
number
y
number
z
number
owner?
number = 0
options?
radius?
number
seconds?
number
Returns
number