AI Perception Mark player as enemy
How do I mark the player as an enemy for my AI so that they will sense him when using "Detection by Affiliation: Detect Enemies"?
What's the proper way to do this now? I added the interface IGenericTeamAgentInterface. But I have no idea how to set the actual (const) member. All I could find was:
I set the interface in C++:
But it crashes: Assertion failed: bCreateOnlyIfEmpty || !PointerToUberGraphFrame->RawPointer [File:D:\BuildFarm\buildmachine_++UE4+Release-4.11\Engine\Source\Runtime\Engine\Private\BlueprintGeneratedClass.cpp] [Line: 647]
But could also be done through this: https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Types/Interface/UsingInterfaces/index.html (which does not crash the engine even though they should be the same?)
Why is it so hard to set a simple int-variable? Am I doing it all wrong?
Since 4.10 is recommended to use a AI controller as provider of diplomacy options:
Override method with logics of your game:
I see that this is still a problem in 4.21.1. It can not be so difficult to fix something like that, and that you can edit from blueprint, at least be able to choose if an actor is, friend, neutral or enemy.
answered Dec 30 '18 at 11:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here