I’m very new to programming in C++ and doing so in the engine, while I was following a tutorial online I came across a problem which I cannot seem to figure out myself (by the lords I have tried)
The issue as far as I can tell is that VS/Unreal seems to think that UAIPerceptionComponent has no declaration or least, not a valid one. I have followed it back to find the headers to include and I believe I have done so. Initially, I was trying to do SetPerceptionComponent(CreateDefaultSubobject<UAIPerceptionComponent>(TEXT(“Perception Component”))); My understanding is that it would create a new perception component and apply that to be the used one by the AI controller. I then tried what you will find at the bottom of the code. GetPerceptionComponent()->SetDomiantSense(*SightConfig->GetSenseImplementation()); This gives no errors until I try to access something from that GetPerceptionComponent() My code is attached along with the error message. I would really appreciate some help!