five-on-it / packages/sim/src/character / spawnCharacter
Function: spawnCharacter()
spawnCharacter(
sim,spawn,ownerClientId?,body?):number
Defined in: packages/sim/src/character.ts:630
Creates a character standing at a spawn point, in a body (BODIES: a person's unless said), and returns its entity id.
Parameters
sim
spawn
ownerClientId?
number = 0
body?
number = BODY_PERSON
Returns
number