Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

CoverTest

A line cover may block: its ray and the metres it reaches, the target it would reach, and those past it a piercing shot may still hit, whose own bodies are never cover in front of them: a crate with health is judged by a capsule its box stands outside.

Property Type Description
asEntity? Entity | Instigator | null Whom the line is judged for, as a query’s asEntity: a court’s membersOnly net is cover for its members alone.
collisionMask? CollisionMask The layers that stand as cover: every layer but the characters’ where left out, for a game whose characters stand in layers of its own.
range number Metres along the ray it reaches.
ray Ray -
target? Entity | null -
through? readonly Entity[] -