Adding “AMyCharacterC : public ACharacter, public ICrowdAgentInterface” to the .h file fails with a new and exciting error, even when not attempting to register player with UCrowdManager.
error LNK2019: unresolved external symbol “__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UCrowdAgentInterface_NoRegister(void)” (_imp?Z_Construct_UClass_UCrowdAgentInterface_NoRegister@@YAPEAVUClass@@XZ) referenced in function “class UClass * __cdecl Z_Construct_UClass_AMyCharacterC(void)” (?Z_Construct_UClass_AMyCharacterC@@YAPEAVUClass@@XZ)
No more errors and MyCharacterC compiles now. Code for registering character with CrowrdManager is put into the BeginPlay() (as above), and MyCharacter is re-parented to MyCharacterC.
Game runs.
Problem is however, that the core reason for all this is not actually working, the AI entities, which are using DetourCrowdAIController as the parent for their AIController are not avoiding the player, opting instead to try walking straight through the player character as before.
What’d be the next thing to try to fix this particular issue?