Set SelfActor in Blackboard
This commit is contained in:
parent
969ecbebc8
commit
bab1f8acd6
|
@ -46,6 +46,7 @@ void AEnemyAIController::OnPossess(APawn* InPawn)
|
||||||
{
|
{
|
||||||
Blackboard->InitializeBlackboard(*behaviourTree->BlackboardAsset);
|
Blackboard->InitializeBlackboard(*behaviourTree->BlackboardAsset);
|
||||||
BehaviorTree->StartTree(*behaviourTree);
|
BehaviorTree->StartTree(*behaviourTree);
|
||||||
|
Blackboard->SetValueAsObject("SelfActor", enemy);
|
||||||
}
|
}
|
||||||
|
|
||||||
//ensure(enemy->GetMovementComponent()->UseAccelerationForPathFollowing());
|
//ensure(enemy->GetMovementComponent()->UseAccelerationForPathFollowing());
|
||||||
|
|
Loading…
Reference in New Issue