Hey guys. I’m trying to follow this free tutorial on youtube. Its about basic of AI. It works fine without any problem but I can not understand part of it.
My first question:
In UE4 this dude added a “BlackboardData” and added two keys inside it. “Enemy” and “Destination”.
In C++ this dude use that “BlackboardData” with this code:
BlackboardComp = PCIP.CreateDefaultSubobject<UBlackboardComponent>(this, TEXT("BlackBoardComp"));
How above code links BlackboardComp with “BlackboardData”? I mean if I have several “BlackboardData” how above code understand to link to correct one?
My second question is:
This dude wrote a function “Possess”, but he never called it! Then how this function works?!
My last question is:
In Tutorial_bot.cpp this dude wrote this code:
AIControllerClass = ATutorial_Controller::StaticClass();
Why he wrote this? Why inside Tutorial_bot.cpp?
Thank you for help.