Skip to content

setWaygate beta ​

Function of @v12-engine/engine

ts
export declare function setWaygate(gate: Entity, to: string | Vec2 | null): void;

Says where a waygate leads (a point of the map by its name, or a place), or shuts it (null): what the editor's "Leads to" field says of a placed one, in code. Any building can be made a waygate so