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
Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback