TraceOptions
Defined in: client/api.d.ts:6370
What a World.lineTrace hits and what it passes through.
Properties
Section titled “Properties”channel?
Section titled “channel?”
optionalchannel?:"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.
complex?
Section titled “complex?”
optionalcomplex?:boolean
Defined in: client/api.d.ts:6384
Trace against per-polygon collision rather than the simplified shapes. Default false.
ignore?
Section titled “ignore?”
optionalignore?:number[]
Defined in: client/api.d.ts:6389
Network ids of entities (players, NPCs, world objects, beasts, characters) whose bodies the trace passes through.
ignoreSelf?
Section titled “ignoreSelf?”
optionalignoreSelf?:boolean
Defined in: client/api.d.ts:6394
Whether the local player’s body is passed through. Default true.
objectTypes?
Section titled “objectTypes?”
optionalobjectTypes?: ("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.