Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

LocalPlayerStateInfo

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

Curated view of the pawn’s CharacterStateInfo component. Getters return null without a pawn/component; each call re-resolves the live pawn.

clearInvulnerable(): boolean

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

Ends a timed invulnerability window setInvulnerable started (no-op when none is active).

boolean


getHealth(): number | null

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

Returns the local player’s current health.

number | null


getLevel(): number | null

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

Returns the local player’s level (ObjectStateInfo::GetLevel).

number | null


getMaxHealth(): number | null

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

Returns the local player’s maximum health.

number | null


isDead(): boolean | null

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

Whether the local player is dead.

boolean | null


isInvulnerable(): boolean | null

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

true during a timed invulnerability window (setInvulnerable(seconds)).

boolean | null


isInvulnerableToDamage(): boolean | null

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

The persistent damage-immunity flag (setInvulnerableToDamage), distinct from the timed window.

boolean | null


isNearDeathKneeling(): boolean | null

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

true while in the near-death kneel (the game’s downed state).

boolean | null


isProtectedFromDeath(): boolean | null

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

Whether the death-protection flag is set.

boolean | null


restoreHealthToMax(removeTak?): boolean

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

Restores health to max.

boolean

Passed to the game’s bRemoveTAK; defaults to false.

boolean


setHealth(amount, indicateHud?): boolean

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

Sets current health through the game’s own SetHealth. Returns the game’s accepted/rejected verdict; false also when there’s no pawn.

number

New current health (clamped by the game).

boolean

Whether the health bar reacts; defaults to true.

boolean


setInvulnerable(seconds): boolean

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

Grants the local player timed invulnerability for seconds, through the game’s own window: no damage lands until it runs out or clearInvulnerable ends it. Local only: the server’s player rules still decide what other players may do. Returns the game’s accepted/rejected verdict; false for a non-finite value.

number

Duration of the timed invulnerability window.

boolean


setInvulnerableToDamage(invulnerable): boolean

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

Sets/clears the persistent damage-immunity flag.

boolean

Set or clear the persistent damage-immunity flag.

boolean