Create a BP actor called BP_SpawnPoint
Add box collision component, name as bound
Set no collision
New function: SpawnCharacter
Event graph (visible the promoted variable):
Drag the spawn actor in scene, input spawn amount and test in play
Now is able to spawn the characters they are in random place and float in air
To solve it:
modify:
Let AI for spawn walk around the box area
Duplicate 3rd person BP, rename as BP_EnemyGuard
Back to SpawnPoint BP, extend the graph:
Create a AI Controller BP, name as AIC_Enemyguard
Create a behavoir tree and blackboard, rename them as BB_EnemyGuard and BT_EnemyGuard
Open behavior tree, create graph:
Blackboard, add newkey and name as:
Back to behavoir tree, change the blackboard key:
Click New task, name as BTT_SetMoveToLocation:
In its task graph:
Back to BP EnemyGuard, add In SpawnPoint BP, change the class, and add the following nodes:
Back to BTT_set move to location graph:
Back to AIC EnemyGuard graph:
Add function called Set Move to Location
Back to BTT set move to location
Go to behavior tree:
Add NAV mesh bound volume in scene that cover the scene
Back to SpawnPoint, spawn character graph:
Not working, spawn still not moving around
16:30