I have found a bug in Unreal version 4.10.2 related to the Blackboard.
When I was testing my character in the editor, it worked the way it was supposed to. When I tested it on a console build, it also worked exactly the way it was intended. However, on the PC build, it stopped working. After about 3 hours of debugging I’ve found the cause of this.
In my character, I set a blackboard key called hasSpottedPlayer to true once the player was spotted using PawnSensing. I was using the following code to set the Blackboard variable within the Character:
Then to set the value I was using this:
This works in the editor as well as on a console build, but it broke in a PC build. I’ve now replaced the Blackboard initialization code from the Character class to this in the AI Controller.
This works in the editor, on a PC build and on a console build.
So, for some reason, getting the AI controller and then the blackboard from that is broken on PC.