Create and initialize a new state machine instance with the given context. The state machine is instantiated with the Context as the outer object. Initialize is automatically run on a separate thread.
Parameters:
StateMachineClass
The class of the state machine to be instantiated.
Context
The context object this state machine will run for. Often an actor.
OnCompletedDelegate
Delegate to assign which is called when the process completes.
Return: The state machine instance created. It will not be initialized at the time of function return.
Create and initialize a new state machine instance with the given context. The state machine is instantiated with the Context as the outer object. Initialize is automatically run on a separate thread.
Parameters:
StateMachineClass
The class of the state machine to be instantiated.
Context
The context object this state machine will run for. Often an actor.
Create a new state machine instance from a template initialized with the given context. The state machine is instantiated with the Context as the outer object.
Parameters:
StateMachineClass
The class of the state machine to be instantiated.
Context
The context object this state machine will run for. Often an actor.
Template
A template archetype for setting initial property values of the state machine instance.
bInitializeNow
If the Initialize method should be called. Initialize must be called before the state machine can be started.
Return: The state machine instance created.
Todo:
This function is intended to be deprecated and instead rely on the engine's NewObject<> for templates, but there isn't a good replacement for existing BP usage.
Warning:
Every pin you split from here will create and initialize a new instance!