unreal.TargetingSelectionTask_Trace¶
- class unreal.TargetingSelectionTask_Trace(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
TargetingTaskclass: UTargetingSelectionTask_Trace Selection task that can perform a synchronous or asynchronous trace (line/sweep) to find all targets up to the first blocking hit (or its end point).
C++ Source:
Plugin: TargetingSystem
Module: TargetingSystem
File: TargetingSelectionTask_Trace.h
Editor Properties: (see get_editor_property/set_editor_property)
collision_profile_name(CollisionProfileName): [Read-Write] The collision profile name to use instead of trace channel (does not work for async traces)complex_trace(bool): [Read-Write] Indicates the trace should perform a complex tracedefault_source_offset(Vector): [Read-Write] The default source location offset used by GetSourceOffsetdefault_swept_trace_radius(ScalableFloat): [Read-Write] The default swept trace radius used by GetSweptTraceRadius when the trace type is set to Sweepdefault_trace_length(ScalableFloat): [Read-Write] The default trace length to use if GetTraceLength is not overridden by a childexplicit_trace_direction(Vector): [Read-Write] An explicit trace direction to use (default uses pawn control rotation or actor forward vector in GetTraceDirection)ignore_instigator_actor(bool): [Read-Write] Indicates the trace should ignore the source actorignore_source_actor(bool): [Read-Write] Indicates the trace should ignore the source actortrace_channel(TraceTypeQuery): [Read-Write] The trace channel to usetrace_type(TargetingTraceType): [Read-Write] The trace type to use
- get_additional_actors_to_ignore(targeting_handle) Array[Actor]¶
Native Event to get additional actors the Trace should ignore
- Parameters:
targeting_handle (TargetingRequestHandle) –
- Returns:
out_additional_actors_to_ignore (Array[Actor]):
- Return type:
- get_source_location(targeting_handle) Vector¶
Native Event to get the source location for the Trace
- Parameters:
targeting_handle (TargetingRequestHandle) –
- Return type:
- get_source_offset(targeting_handle) Vector¶
Native Event to get a source location offset for the Trace
- Parameters:
targeting_handle (TargetingRequestHandle) –
- Return type:
- get_swept_trace_radius(targeting_handle) float¶
Native Event to get the swept trace radius (only called if bSweptTrace is true)
- Parameters:
targeting_handle (TargetingRequestHandle) –
- Return type:
- get_trace_direction(targeting_handle) Vector¶
Native Event to get the direction for the Trace
- Parameters:
targeting_handle (TargetingRequestHandle) –
- Return type:
- get_trace_length(targeting_handle) float¶
Native Event to get the length for the Trace
- Parameters:
targeting_handle (TargetingRequestHandle) –
- Return type: