world.setPlayerMarkerRadius
Changes how far away, in metres, a player shows on another player’s radar, for every player. A marker shows within the radius and stays until the player is 10% beyond it (110 m with the default 100 m), so it does not flicker at the edge.
Renamed in 0.28 from world.setMarkerRadius; see renamed names.
Signature
Section titled “Signature”world.setPlayerMarkerRadius(radius: number | null): Promise<ActionResult>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
radius |
number or null |
0 to 6000 metres; a player exactly on the radius counts. null: no limit. |
Returns
Section titled “Returns”A promise of an ActionResult: applied (also when it already was this), or rejected
with invalid-radius for anything else.
Example
Section titled “Example”import { world } from "nativemp";
await world.setPlayerMarkerRadius(null); // no limitRelated
Section titled “Related”world.getPlayerMarkerSettings: the current settingsworld.setPlayerMarkerMode: the mode