Skip to content

setGhost beta ​

Function of @v12-engine/engine

ts
export declare function setGhost(world: World, entity: Entity, ghost: boolean): void;

Ghosts walk through other units. Classic RTS games do this for workers hauling resources so mining never jams.