unreal.SimpleTargetingSelectionTask

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

Bases: TargetingTask

class: USimpleTargetingSelectionTask This is a blueprintable TargetingTask class made for adding new Targets to the results list. Override the SelectTargets function and call AddTargetHitResult or AddTargetActor to select new targets.

C++ Source:

  • Plugin: TargetingSystem

  • Module: TargetingSystem

  • File: SimpleTargetingSelectionTask.h

add_hit_result(targeting_handle, hit_result) bool

Adds a HitResult to the Targeting Results for a given TargetingRequestHandle. Returns False when the Actor that was hit was already in the list

Parameters:
Return type:

bool

add_target_actor(targeting_handle, actor) bool

Adds a single Actor to the Targeting Results for a given TargetingRequestHandle. Returns false when the Actor was already in the list.

NOTE: If you have a HitResult associated with this selection, please use AddHitResult instead.

Parameters:
Return type:

bool

select_targets(targeting_handle, source_context) None

Select Targets

Parameters: