Skip to content

revealUnit beta ​

Function of @v12-engine/engine

ts
export declare function revealUnit(world: World, entity: Entity, team: number, seconds: number): void;

Lets a team see a unit wherever it is for so many seconds (the longer of these and what it had): in the fog (lit where it stands), in a bush, invisible or camouflaged. What the revealUnit effect does, for a game's own code. Works in any game: the engine's fog and sight read it