Skip to content

Sein Targeter Point

Struct · FSeinTargeterPoint

#include "Abilities/SeinTargeterTypes.h"

deterministic: safe in simulation code

One captured target from a targeter input cycle.

Three fields cover all current spec types without forcing every ability to understand every spec’s payload shape:

  • Location: primary world point (always set on capture)

  • AuxLocation: secondary world point for drag specs (line endpoint). Zero when the spec is point-only.

  • RotationStep: 0..N-1 quantized rotation index for drag-rotate specs. N defaults to 4 (90° steps, matching the placement-yaw convention) but specs can declare different step counts.

FFixedVector Location

Editable in defaults and on instances · Blueprint read and write

Primary captured world point (RMB-down for drag, RMB-click for simple point).

FFixedVector AuxLocation

Editable in defaults and on instances · Blueprint read and write

Secondary captured world point — drag-line endpoint. Zero for non-drag specs.

uint8 RotationStep · default 0

Editable in defaults and on instances · Blueprint read and write

Quantized rotation index for drag-rotate specs with snapping enabled. When the spec’s RotationStepDegrees > 0, this holds 0..StepCount-1 for the chosen step (e.g. 0/1/2/3 for 90°-step cardinal orientations). Zero for non-rotation specs OR free-rotation drag (RotationStepDegrees = 0).

Most ability OnActivate logic should read YawDegrees instead — it works uniformly for both snapped and free rotation. RotationStep is for cases where the integer step is genuinely useful (e.g. mapping to the navigation placement gate’s discrete yaw convention).

FFixedPoint YawDegrees · default FFixedPoint::Zero

Editable in defaults and on instances · Blueprint read and write

Captured yaw rotation in degrees (continuous, 0..360). For drag-rotate specs this is computed from anchor → cursor direction at confirm time:

  • Spec with RotationStepDegrees > 0 → snapped to nearest step

  • Spec with RotationStepDegrees == 0 → free rotation, raw cursor yaw Zero for non-drag specs (Point spec). Read this in OnActivate to spawn the building / aim the ability at the captured rotation.