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.
Parameters
Section titled “Parameters”entity
Section titled “entity”number
active
Section titled “active”boolean
Returns
Section titled “Returns”void