Skip to content

Sein Targeter Spec

Class · USeinTargeterSpec : UObject

#include "Abilities/SeinTargeterSpec.h"

abstract: use a subclass · can be subclassed in Blueprint

Base class for targeters, which capture the target points of an ability. Pick a concrete targeter per ability. Target Count sets how many points to capture, Preview Class sets the preview actor, and Reject Click When Blocked chooses between strict and permissive clicking.

Overridable in Blueprint, with a native default

Run client-side validation for the cursor’s current cycle. Default implementation returns Valid; subclasses override to add range / footprint / line-length checks. The result drives preview tinting and (if bRejectClickWhenBlocked) click acceptance.

This is a blueprint-overridable hook so designers can layer ability- specific rules (e.g., “smoke can only land on terrain not buildings”) via subclassing without C++. The result is advisory — server re-validates.

ESeinTargeterValidity ValidateClient(const FFixedVector& CursorWorld, const FFixedVector& AuxWorld) const;

int32 TargetCount · default 1 · min 1, max 16

Editable in defaults and on instances · Blueprint read-only

Number of target points the targeter must capture before submitting the command. Most abilities are 1; multi-target abilities (“throw 3 grenades”, patrol-path waypoints) use higher values. After the Nth confirm, the targeter packs all N FSeinTargeterPoints into the broker order payload and submits. RMB cancels the in-progress capture (does not partial-submit). Range [1, 16] — multi-target abilities beyond 16 should consider a different UX (e.g., free-form waypoint mode in a future spec).

FSoftClassPath PreviewClass

Editable in defaults and on instances · Blueprint read-only

Preview actor class shown while targeting. Empty uses the targeter type’s default preview. Set it to give one ability its own look.

bool bRejectClickWhenBlocked · default false

Editable in defaults and on instances · Blueprint read-only

When true, RMB clicks on cells the spec considers Blocked are eaten — the targeter stays active, the cycle does not advance. Use for strict building placement. When false (default for combat abilities), the click submits and the server rejects with the appropriate reason — gives the player “I tried” feedback over silent input-eating.

C++ members (1)
  • FSoftClassPath ResolvePreviewClass() const; Returns the soft preview class path to spawn — PreviewClass if non-empty, else the subclass default. Subclasses override GetDefaultPreviewClass() to declare their built-in preview type. Caller (USeinTargeterSubsystem) resolves the path to a UClass* via TryLoadClass on Activate.