Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/TTasksCompletionStatus
Description
Set the status of a task respecting the previous status value. The priority is Failed, Succeeded, Stopped, Running.
| Name | SetStatusWithPriority |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeTasksStatus.h |
| Include Path | #include "StateTreeTasksStatus.h" |
ETaskCompletionStatus SetStatusWithPriority
(
int32 StateTaskIndex,
ETaskCompletionStatus NewStatus
)
Parameters
| Name | Remarks |
|---|---|
| StateTaskIndex | The index of the task in the state. |