Skip to content

Line Targeter Spec

Class · USeinLineTargeterSpec : USeinTargeterSpec

Parent: Sein Targeter Spec

#include "Abilities/SeinTargeterSpec.h"

Line / corridor targeter. Captures world-space segments; each captured FSeinTargeterPoint is one segment: Location = start, AuxLocation = end — identical encoding for both capture modes, so ability OnActivate logic never cares which interaction produced the segments.

Used for: barrage lines, strafing runs, smoke walls (Drag); trench networks, multi-segment walls, breach lanes (MultiClick). Width > 0 turns the line into a corridor for preview + gameplay; the ability reads Width off this spec (class defaults-authored, identical on every client — deterministic without riding the wire).

TargetCount (inherited) is the SEGMENT count: Drag mode loops N independent drag gestures; MultiClick chains N segments from N+1 clicks.

ESeinLineTargeterCapture CaptureMode · default ESeinLineTargeterCapture::Drag

Editable in defaults and on instances · Blueprint read-only

Segment capture interaction — drag gesture or chained multi-click.

FFixedPoint Width · default FFixedPoint::Zero

Editable in defaults and on instances · Blueprint read-only

Corridor width in world units. Zero (default) = pure line. Drives the preview rectangle and is the gameplay corridor width the ability reads at execution (e.g. lane fit, area damage bounds).

FFixedPoint MaxSegmentLength · default FFixedPoint::Zero

Editable in defaults and on instances · Blueprint read-only

Maximum length of a single captured segment in world units. Zero (default) = unlimited. When exceeded, ValidateClient reports Blocked — combine with bRejectClickWhenBlocked to refuse the click, or leave it permissive to only tint the preview. Checked on the issuing client only; the simulation doesn’t re-check it.

float FinishClickTolerance · default 50.0f · min 1.0

Editable in defaults and on instances · Blueprint read-only

MultiClick only: clicking within this distance (world units) of the previous vertex finishes capture early and submits the segments placed so far (needs at least one). Render-side UX tolerance — never rides the wire.

bool bValidateCorridorFit · default true

Editable in defaults and on instances · Blueprint read-only

Sample the authored segment against dynamic nav passability while targeting: a blocked centerline reports Blocked, a corridor edge (Width > 0) clipping impassable cells reports Warning (“the lane pinches”). Advisory client UX evaluated by the targeter subsystem — worlds with no bound passability resolver skip the check entirely. Disable for abilities that legitimately cross impassable ground (artillery barrages over walls).