FlowPilot Task Abstract
UFlowPilotTask · Inherits UObject · Core/FlowPilotTask.h
FlowPilotTask
- Can Tick
Lifecycle
Every Task goes through the same steps:
| Step | When | What a Task does there |
|---|---|---|
Setup | Once per flow execution, even across restarts | Cache references, prefetch Actors. |
Enter | The Task starts | Start its work. Returning false stops the flow with an error. |
Tick | Every frame while running | Return InProgress, Succeeded or Failed, or call FinishTask. |
Exit | The Task ends, or the flow is cancelled | Clean up delegates and timers. |
Reset | Before a restart | Return to the Setup state. |

See Creating Your Own Task to write one.
Properties
| Property | Default | Description |
|---|---|---|
Task NameTaskName · FName | ||
DescriptionDescription · FName | ||
EnabledbEnabled · bool | true | If False, Will skip this Task's execution |
Blueprint Functions
Callable from Blueprint and C++.
| Function | Description |
|---|---|
Finish Taskvoid FinishTask(bool bSuccess) | Method to call to finish a task. This method will set EFPTaskResul to Success or Fail on next Tick. |
Has Startedbool HasStarted() const | Returns true when Task Started |
Is Activebool IsActive() const | Returns true when Task in Progress and Not Complete |
Is Completebool IsComplete() const | Returns true when Task is Complete |
Get Flow Pilot Component Tasks onlyUFlowPilotComponent* GetFlowPilotComponent() const | Returns FlowPilotComponent |
Get Flow Pilot Owner Actor Tasks onlyAActor* GetFlowPilotOwnerActor() const | Returns FlowPilotComponent Owner Actor |
Get World Context Tasks onlyUWorld* GetWorldContext() const | Returns FlowPilot Actor World |