Can you store a struct in a blackboard? And what about arrays in blackboard? Is this possible?
I want to store an array of structs in my AI Blackboard but I cant seem to do this. There is however a class option - is the way to do it to store all my information in a new class? Or is it possible to get support for structs and arrays in the blackboard?
Basically, I want my enemy characters to be able to store information about other enemy characters around them, I was hoping to use a struct for the data, then an array of structs where each element is for the specific enemy.
I could make a class but I was just wondering if this is available to do in blueprints in any way?
Thanks in advance!
asked Feb 13 '15 at 12:40 AM in Blueprint Scripting
We are going to support arrays in 4.8. User-created structs not so much - it's very tricky and we're blocked by some BP details. We'll add it as soon as possible.
And as a fallback you can always create a custom BP class storing your stuff and have that stored in Blackboard. That's supported from the very beginnings of our Blackboard implementation.
answered Feb 13 '15 at 10:55 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here