Skip to content

ping beta ​

Function of @v12-engine/engine

ts
export declare function ping(world: World, player: PlayerId, point: Vec2, kind?: string, to?: string, by?: string): void;

A player marks a spot of the map (pinged) for their allies (to: 'allies', when left out) or for everyone ('all'): told to them and to who watches, as sessions do. Of a kind the game's rules have (RuleSettings.talk.pings.kinds), as many in a while as they let (RuleSettings.talk), and as the beforeTalk hook lets it, which may change who hears it