Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Pvp

const Pvp: object

Defined in: client/api.d.ts:4851

Player-vs-player presentation and diagnostics. Who may hurt whom is the server’s (its Pvp builtin); this client resolves the same relation per player and wears it on their proxy natively.

reactState(): object

reactStatus as data. An empty component means the pawn carries no ability component and the stagger cap is inert; reactionRunning is null when the readback itself failed; cancels counts remote impacts whose reaction request was dropped, impacts every remote impact seen on the pawn (dropped or not). Reads only.

object

activeAbility: string

cancels: number

chain: number

component: string

enabled: boolean

impacts: number

lastStagger: string

maxChain: number

probeQueued: number

reactionRunning: boolean | null

suppressed: boolean

suppressedFor: number

suppressFor: number

suppressions: number

window: number

reactStatus(): string

Reads the react policy’s live state: the resolved reaction component, whether a reaction is running right now, the current chain count and any active suppression window. Reads only.

string

relation(playerId): { aim: "lock" | "skillshot"; defeat: "death" | "kneel"; hostile: boolean; reason: string; } | null

How this client resolves that player against us, from the server’s rules and pairs and both players’ flag and team: the same answer the server gives Pvp.relation. Null while they are not streamed in. pvpRelationChanged fires when it changes.

number

{ aim: "lock" | "skillshot"; defeat: "death" | "kneel"; hostile: boolean; reason: string; } | null

restoreReactions(): string

WRITES. Ends any active stagger-immunity window now and turns the pawn’s reactions back on, leaving the policy itself alone. Call it wherever a duel or gamemode ends — reactions must never be left off.

string

setReactPolicy(policy?): string

WRITES. The victim-side stagger economy: after maxChain staggers inside window seconds (or one unbroken stagger longer than window), impacts from other players stop requesting a hit reaction on the local pawn until suppressFor seconds after the current stagger ends, so a spammed basic attack can no longer chain full-body reactions into an unanswerable lock. Damage, PvE hits, death and crowd control (Glacius, Petrificus, Levioso, Arresto, Transformation) are never affected. Defaults: 2 staggers per 1.5s, then 1s of stagger immunity.

boolean | { enabled?: boolean; maxChain?: number; suppressFor?: number; window?: number; }

Omitted fields keep their current value; a bare boolean toggles enabled.

string

showMeter(playerId?): string

WRITES. Points the retail boss/duel HUD meter at that player’s proxy and writes their character name (CCD first+last, nickname fallback) into it. The bar/level track their real vitals via the native relay.

number | "auto" | null

Whose proxy to track; 0 uses a dev-spawned student; ‘auto’ follows whoever your hits land on (team duels/FFA); null/omitted hides the meter.

string