state
state: (WorldPvp) -> { kind: "safe" | "active" | "unknown", combatRange: { min: number, max: number }?, reason: PvpUnknownReason? }Whether the local player is somewhere they can be attacked, and how.
world:pvp()| Method | Returns | Description |
|---|---|---|
state() | { kind: "safe" | "active" | "unknown", combatRange: { min: number, max: number }?, reason: PvpUnknownReason? } | Whether the local player is somewhere they can be attacked, and how. |
threats() | { kind: "safe" | "active" | "unknown", reason: PvpUnknownReason?, combatRange: { min: number, max: number }?, unreadableCandidates: number?, players: { Player }? } | Who can attack the local player right now. |
| Method | Returns | Description |
|---|---|---|
WorldDomain.pvp | WorldPvp | Wilderness threat reads. |
statestate: (WorldPvp) -> { kind: "safe" | "active" | "unknown", combatRange: { min: number, max: number }?, reason: PvpUnknownReason? }Whether the local player is somewhere they can be attacked, and how.
threatsthreats: (WorldPvp) -> { kind: "safe" | "active" | "unknown", reason: PvpUnknownReason?, combatRange: { min: number, max: number }?, unreadableCandidates: number?, players: { Player }? }Who can attack the local player right now.
unreadableCandidates counts nearby players whose combat level could not be read — treat a non-zero count as "the threat list is incomplete" rather than as "no threat".