Skip to content

setEntityActive

setEntityActive(world, entity, active): void

Defined in: ecs/entityUtils.ts:74

Switch entity off, or back on. Everything under it goes with it — a character switched off with its sword still swinging is not switched off — and the subtree is DERIVED, so switching the character back on does not un-switch a sword the author had switched off on its own.

World

number

boolean

void