Spawn AIFrom Class

Spawn AIFrom Class

Windows
MacOS
Linux

Spawns AI agent of a given class. The PawnClass needs to have AIController set for the function to spawn a controller as well.

Target is AIBlueprint Helper Library

Spawn AIFrom Class
Pawn Class
Select Class
Behavior Tree
Select Asset
Location
X0
Y 0
Z 0
Rotation
R 0
P 0
Y0
No Collision Fail
Owner
Return Value

Inputs

In
Exec
Pawn Class
Pawn Class Reference
Behavior Tree
Behavior Tree Object Reference

if set, and the function has successfully spawned and AI controller, this BehaviorTree asset will be assigned to the AI controller, and run.

Location
Vector
Rotation
Rotator
No Collision Fail
Boolean
Owner
Actor Object Reference

lets you spawn the AI in a sublevel rather than in the persistent level (which is the default behavior).

Outputs

Out
Exec
Return Value
Pawn Object Reference
Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss