unreal.SimpleTargetingSortTask

class unreal.SimpleTargetingSortTask(outer: Object | None = None, name: Name | str = 'None')

Bases: TargetingSortTask_Base

class: USimpleTargetingSortTask This is a blueprintable TargetingTask class made for reordering Targets in the results list. Override the GetScoreForTarget Blueprint Function to provide a score for each element and then Targets will be sorted by score.

C++ Source:

  • Plugin: TargetingSystem

  • Module: TargetingSystem

  • File: SimpleTargetingSortTask.h

Editor Properties: (see get_editor_property/set_editor_property)

  • ascending (bool): [Read-Write]

bp_get_score_for_target(targeting_handle, target_data) float

Called on every target to get a Score for sorting. This score will be added to the Score float in FTargetingDefaultResultData

Parameters:
Return type:

float