When I test my level I get a number of critical errors, saying that a BTT_bluprint tries to access variables in an actor that is pending destruction.
The exact message is this:
Error Cannot access ‘Soldier_C_3’. It is pending kill. Property: ‘K2Node_DynamicCast_AsAICharacter_Grunt’ from node Finish Execute in blueprint BTT_AttackPlayerError Attempt to assign variable through None from node Finish Execute in blueprint BTT_AttackPlayer
Does anyone know how to fix this? Should I somehow destroy the connection from the actor to the AI controller before I destroy the actor, or have I completely misunderstood the problem?