Skip to content

Target Scorer

Class · USeinTargetScorer : UObject

#include "Targeting/SeinTargetScorer.h"

can be subclassed in Blueprint · deterministic: safe in simulation code

The policy for a target query: which candidates count and which one wins. Subclass it in Blueprint and set it as the query’s Scorer Class. Both functions must only read state, because a query can evaluate them more than once.

Overridable in Blueprint, with a native default

May this candidate be targeted at all? Runs after the mechanical gates (alive, required component, range, arc, tags, LoS). The default excludes the instigator’s own entities — hostility is policy, so alliance-aware games override this (for example, consult diplomacy).

bool IsValidTarget(const USeinWorldSubsystem* World, const FSeinTargetQuery& Query, FSeinEntityHandle Candidate) const;

Overridable in Blueprint, with a native default

Score a valid candidate: highest wins, and exact ties break on entity order. The default scores nearer as higher.

FFixedPoint ScoreTarget(const USeinWorldSubsystem* World, const FSeinTargetQuery& Query, const FSeinTargetCandidate& Candidate) const;