unreal.TargetingFilterTask_SortByDistance

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

Bases: TargetingSortTask_Base

class: UTargetingFilterTask_SortByDistance Simple sorting filter based on the distance to the source actor. Note: This filter will use the FTargetingDefaultResultsSet and use the Score factor defined for each target to store the distance and sort by that value.

C++ Source:

  • Plugin: TargetingSystem

  • Module: TargetingSystem

  • File: TargetingFilterTask_SortByDistance.h

Editor Properties: (see get_editor_property/set_editor_property)

  • ascending (bool): [Read-Write]