I want to set an enum entry in my AIController blueprint when player presses a key, but it doesn’t work.
“Get Blackboard Value as Name” always returns a null value.
I create an enum called ENUM_TaskTypes, and have an enum entry in Blackboard.
Does anyone know how to set and get Blackboard enties in normal blueprints?
I don’t think AIController gets keyboard inputs, maybe wrong, but can you add a print after your “Press P” node to make sure it actually invoked?(right after PressP, and print something simple like ‘hello’)
btw, it would be better that for debug purpose, let level blueprint to take input and then sets instruction status in GameMode, and in your AIController, you can then query GameMode and see what your AI need to do. You can then later on change those states into BehaviorTree’s conditions.
you would need a task to do that, i guess that’s how behavior trees are designed. so you have tasks that sets the blackboard value, and tasks that use blackboard value to do action or branch.