Skip to content

portalsPack beta ​

Function of @v12-engine/engine

ts
export declare function portalsPack(): GamePack;

Portals, as in classic RTS games: waygates (UnitTypeDef.waygate), which a unit told to (a right-click, as any building is walked up to) walks into and comes out of where the gate leads (the "Leads to" field of a placed one, a point of the map; setWaygate in code), and the townPortal effect (EffectTypes.townPortal), which takes the caster and its units around it to its side's home nearest where it was aimed (homeOf: the map's home.<team> point, or the nearest of its buildings). portal and townPortal do them in code