Skip to content

FPTask_TriggerDistance.h

File Info

FileName: FPTask_TriggerDistance.h

EFPDistanceComparisonOp

ValueDescription
LessThanLessThan
LessThanOrEqualLessThanOrEqual
GreaterThanGreaterThan
GreaterThanOrEqualGreaterThanOrEqual

EFPDistanceMethod

ValueDescription
Distance3DDistance3D
Distance2DDistance2D

UFPTask_TriggerDistance

Parent Classes: [ UFlowPilotTask ]

Trigger by Distance

  • Checks distances from Source Actor Reference and Destination Actor Reference
  • Will use Squared Distances internally.

Properties

// Source Actor to check Distance From
UPROPERTY(EditAnywhere, Category = "FlowPilot")
FFlowActorReference SourceActorReference;
// Distance Comparison Operation
UPROPERTY(EditAnywhere, Category = "FlowPilot")
EFPDistanceComparisonOp Operation = EFPDistanceComparisonOp::LessThan;
// Distance method to use.
UPROPERTY(EditAnywhere, Category = "FlowPilot")
EFPDistanceMethod Method = EFPDistanceMethod::Distance3D;
// Threshold to check distance against
UPROPERTY(EditAnywhere, Category = "FlowPilot", meta=(ClampMin=0.0f))
float ThresholdDistance;
// Destination Actor to check Distance From
UPROPERTY(EditAnywhere, Category = "FlowPilot")
FFlowActorReference DestinationActorReference;