Skip to content

five-on-it / packages/sim/src/dogs / spawnDog

Function: spawnDog() ​

spawnDog(sim, x, z, y?, start?): number

Defined in: packages/sim/src/dogs.ts:288

Spawns a dog standing at (x, y, z) (its capsule's centre, a hand over the ground by default) and returns its entity id: on the lead of start.walker when that is a dog walker without a dog, else a stray.

Parameters ​

sim ​

SimWorld

x ​

number

z ​

number

y? ​

number = ...

start? ​

DogStart = {}

Returns ​

number