|
| 1 | +--- |
| 2 | +title: FPTask_InsideVolume.h |
| 3 | +description: Reference page for FPTask_InsideVolume.h |
| 4 | +--- |
| 5 | + |
| 6 | +## File Info |
| 7 | + |
| 8 | + |
| 9 | +__FileName:__ `FPTask_InsideVolume.h` |
| 10 | +- __Enum List:__ |
| 11 | +[ [`EInsideVolumeFilterType`](#einsidevolumefiltertype) | [`EInsideVolumeComparisonOp`](#einsidevolumecomparisonop) ] |
| 12 | +- __Class List:__ |
| 13 | +[ [`UFPTask_InsideVolume`](#ufptask_insidevolume) ] |
| 14 | + |
| 15 | + |
| 16 | +### `EInsideVolumeFilterType` |
| 17 | + |
| 18 | + |
| 19 | +| Value | Description | |
| 20 | +| :-- | :-- | |
| 21 | +| `ByActor` | Filter Actors by Reference | |
| 22 | +| `ByClass` | Filter Actors by Class | |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | +### `EInsideVolumeComparisonOp` |
| 27 | + |
| 28 | + |
| 29 | +| Value | Description | |
| 30 | +| :-- | :-- | |
| 31 | +| `Equal` | Equal | |
| 32 | +| `NotEqual` | NotEqual | |
| 33 | +| `MoreThan` | MoreThan | |
| 34 | +| `MoreThanOrEqual` | MoreThanOrEqual | |
| 35 | +| `LessThan` | LessThan | |
| 36 | +| `LessThanOrEqual` | LessThanOrEqual | |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +## `UFPTask_InsideVolume` |
| 41 | + |
| 42 | + |
| 43 | +__Parent Classes:__ |
| 44 | +[ `UFlowPilotTask` ] |
| 45 | + |
| 46 | + |
| 47 | +Inside Volume |
| 48 | +- Specific "Trigger Volume" class that only checks if N Actors are inside a volume. |
| 49 | +- Actors can be found by ActorReference or Class Type |
| 50 | + |
| 51 | +### Properties |
| 52 | + |
| 53 | +```cpp |
| 54 | +// Trigger Volume Reference |
| 55 | +UPROPERTY(EditAnywhere, Category="FlowPilot") |
| 56 | +FFlowActorReference VolumeActorReference; |
| 57 | + |
| 58 | +// Actor Filter Type |
| 59 | +UPROPERTY(EditAnywhere, Category="FlowPilot") |
| 60 | +EInsideVolumeFilterType FilterActorType = EInsideVolumeFilterType::ByActor; |
| 61 | + |
| 62 | +// Actor Type Reference |
| 63 | +UPROPERTY(EditAnywhere, Category="FlowPilot", meta=(EditCondition="FilterActorType==EInsideVolumeFilterType::ByActor")) |
| 64 | +FFlowActorReference ActorTypeReference; |
| 65 | + |
| 66 | +// Class Type Reference |
| 67 | +UPROPERTY(EditAnywhere, Category="FlowPilot", meta=(EditCondition="FilterActorType==EInsideVolumeFilterType::ByClass")) |
| 68 | +TSoftClassPtr<AActor> ClassType; |
| 69 | + |
| 70 | +// Comparison Operation for Actors Requires Inside Volume |
| 71 | +UPROPERTY(EditAnywhere, Category="FlowPilot", meta=(EditCondition="FilterActorType==EInsideVolumeFilterType::ByClass")) |
| 72 | +EInsideVolumeComparisonOp ComparisonOperation = EInsideVolumeComparisonOp::Equal; |
| 73 | + |
| 74 | +// How many Actors required inside volume |
| 75 | +UPROPERTY(EditAnywhere, Category="FlowPilot", meta=(EditCondition="FilterActorType==EInsideVolumeFilterType::ByClass")) |
| 76 | +int32 RequiredActorsCount = 1; |
| 77 | + |
| 78 | +``` |
0 commit comments