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:
targeting_handle (TargetingRequestHandle) –
hit_result (HitResult) –
- Return type:
- 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:
targeting_handle (TargetingRequestHandle) –
actor (Actor) –
- Return type:
- select_targets(targeting_handle, source_context) None ¶
Select Targets
- Parameters:
targeting_handle (TargetingRequestHandle) –
source_context (TargetingSourceContext) –