Skip to content

five-on-it / packages/sim/src/character / setIndoors

Function: setIndoors() ​

setIndoors(sim, eid, indoors, at?): void

Defined in: packages/sim/src/character.ts:827

Takes a character indoors (a schedule's home, a target safe in its refuge) or brings it back out, at a spot when one is given: indoors it is out of the world, its body disabled (nothing collides with it, no ray finds it), skipped by the systems and left out of the snapshots; out again, it stands where it went in (or at the spot) and goes on.

Parameters ​

sim ​

SimWorld

eid ​

number

indoors ​

boolean

at? ​

SpawnPoint

Returns ​

void