Skip to content

FPTask_InsideVolume.h

File Info

FileName: FPTask_InsideVolume.h

EFPInsideVolumeFilterType

ValueDescription
ByActorFilter Actors by Reference
ByClassFilter Actors by Class

EFPInsideVolumeComparisonOp

ValueDescription
EqualEqual
NotEqualNotEqual
MoreThanMoreThan
MoreThanOrEqualMoreThanOrEqual
LessThanLessThan
LessThanOrEqualLessThanOrEqual

UFPTask_InsideVolume

Parent Classes: [ UFlowPilotTask ]

Inside Volume

  • Specific “Trigger Volume” class that only checks if N Actors are inside a volume.
  • Actors can be found by ActorReference or Class Type

Properties

// Trigger Volume Reference
UPROPERTY(EditAnywhere, Category="FlowPilot")
FFlowActorReference VolumeActorReference;
// Actor Filter Type
UPROPERTY(EditAnywhere, Category="FlowPilot")
EFPInsideVolumeFilterType FilterActorType = EFPInsideVolumeFilterType::ByActor;
// Actor Type Reference
UPROPERTY(EditAnywhere, Category="FlowPilot", meta=(EditCondition="FilterActorType==EFPInsideVolumeFilterType::ByActor"))
FFlowActorReference ActorTypeReference;
// Class Type Reference
UPROPERTY(EditAnywhere, Category="FlowPilot", meta=(EditCondition="FilterActorType==EFPInsideVolumeFilterType::ByClass"))
TSoftClassPtr<AActor> ClassType;
// Comparison Operation for Actors Requires Inside Volume
UPROPERTY(EditAnywhere, Category="FlowPilot", meta=(EditCondition="FilterActorType==EFPInsideVolumeFilterType::ByClass"))
EFPInsideVolumeComparisonOp ComparisonOperation = EFPInsideVolumeComparisonOp::Equal;
// How many Actors required inside volume
UPROPERTY(EditAnywhere, Category="FlowPilot", meta=(EditCondition="FilterActorType==EFPInsideVolumeFilterType::ByClass"))
int32 RequiredActorsCount = 1;