Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

TraceOptions

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

What a World.lineTrace hits and what it passes through.

optional channel?: "camera" | "visibility"

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

Trace channel, “visibility” by default. Visibility stops on the local player’s body mesh and reports the bone, and on another player only while they are PvP-hostile (their capsule, no bone); camera passes through players. Cannot be combined with objectTypes.


optional complex?: boolean

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

Trace against per-polygon collision rather than the simplified shapes. Default false.


optional ignore?: number[]

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

Network ids of entities (players, NPCs, world objects, beasts, characters) whose bodies the trace passes through.


optional ignoreSelf?: boolean

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

Whether the local player’s body is passed through. Default true.


optional objectTypes?: ("worldStatic" | "worldDynamic" | "pawn" | "physicsBody" | "vehicle" | "destructible" | "shallowWater" | "noMountVolume" | "mountOverlapVolume" | "photoModeCapsule" | "largeDestructible" | "sphereTracer" | "spell" | "station" | "deepWater" | "weapon" | "webbedObject" | "audioVolume" | "gameVolume" | "playerOnly" | "fluidSim" | "navMarkup" | "stationStatic")[]

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

Hit only bodies of these object types, e.g. [“worldStatic”, “worldDynamic”] for level geometry, [“pawn”] for character capsules, [“shallowWater”, “deepWater”] for water. Replaces the channel. An object query stops on every body of those types, overlap-only trigger volumes included (a TriggerBox is worldDynamic); a channel trace passes through them.