Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

ColliderOptions

Defined in: server/api.d.ts:5230

What a collider stops, who passes it, how it looks and where it exists.

optional blocks?: ("characters" | "spells")[]

Defined in: server/api.d.ts:5234

What it stops. “characters”: players on foot or riding a broom or creature, NPCs and creatures. “spells”: bolts, aimed or homing, whoever cast them. Default both.


optional color?: ColorLike | null

Defined in: server/api.d.ts:5254

Tints its faces, 0 to 1 per channel, for seeing where it is while building. Opacity defaults to 0.25. Default null: invisible.


optional deflect?: "mirror" | null

Defined in: server/api.d.ts:5249

“mirror”: a wand bolt that meets it flies on off its surface, angle in equal to angle out, still its caster’s bolt: it can hit anyone it meets but its caster. What Protego could never deflect (Incendio) and thrown objects (Oppugno) still end on it. Needs blocks to include “spells”. Default null: bolts end on it.


optional except?: Player[]

Defined in: server/api.d.ts:5244

Let these players and their bolts through; everyone else is stopped. Excludes only.


optional map?: string

Defined in: server/api.d.ts:5264

The map it is in, as player.location().areaId names it; “Overland” or “” (the default) for the shared map.


optional only?: Player[]

Defined in: server/api.d.ts:5239

Stop only these players and their bolts; everyone else passes. NPCs are still stopped. Excludes except.


optional streamRange?: number

Defined in: server/api.d.ts:5269

Interest radius in cm around the shape’s centre: only players this close receive it. Clamped to 100-200000; default 50000 (500 m).


optional virtualWorld?: number

Defined in: server/api.d.ts:5259

The virtual world it is in, within map as an entity’s is. Default 0.