Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Breakables

const Breakables: object

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

Repairable world objects (statues, armour): server-owned broken/repaired state.

applyStates(states, instant?): number

Records a full state list (instant by default) and returns how many applied to loaded objects.

BreakableState[]

boolean

number

arm(): boolean

Watches the game’s repair-done and fully-broken events; the local player’s own changes surface as the breakableState event.

boolean

clear(): void

Forgets every recorded state.

void

isInstalled(): boolean

Whether the game-event hook is live.

boolean

list(radius?): BreakableInfo[]

Loaded repairables, nearest first; radius 0 or omitted lists all.

number

BreakableInfo[]

rescan(): number

Re-indexes every loaded cell and re-applies; returns the recorded state count.

number

setState(uid, state, instant?): boolean

Records the server’s state for one object and applies it if loaded (animated repair unless instant). Re-applied whenever its cell streams in.

number

string

boolean

boolean