Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/FStateTreeExecutionContext
Description
Forces transition to a state. It will skip all conditions. Primarily used for replication purposes so that a client state tree stays in sync with its server counterpart. It has to be a running instance. It will not work if you didn't call Start or if the execution previously failed.
| Name | ForceTransition |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeExecutionContext.h |
| Include Path | #include "StateTreeExecutionContext.h" |
| Source | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Private/StateTreeExecutionContext.cpp |
EStateTreeRunStatus ForceTransition
(
const FRecordedStateTreeTransitionResult & Transition
)
The new run status for the state tree.
Parameters
| Name | Remarks |
|---|---|
| Recorded | state transition to run on the state tree. |