Skip to content

townPortal beta ​

Function of @v12-engine/engine

ts
export declare function townPortal(world: World, caster: Entity, near: Vec2, radius?: number, count?: number): Entity[];

Takes a unit and as many as count of its owner's units within radius of it, nearest first, to its side's home nearest near (homeOf), spread around it: what the townPortal effect does, in code. Gives back who went, none when the side has no home