What is the best BP approach in creating an array of 100 strings and checking if it was used??

Hi, as a newbie in Unreal I would like to hear some more experienced people’s opinion on what I am trying to create.

I want to have 100 objects, all of them interactable, which hold a string(a message), that can be displayed on the screen. It is essential that once a message has been displayed, it not displayed on another object. Each object contains one message, and each one is unique.

Given this objective, what would be the best approach? Should I create a big blueprint for the whole level, or perhaps make one inside the actors and give each of them a unique message. If so, how could I do that? Would I need to use a unique id for specific messages, or is there a simpler way?

What nodes would be used in this case?

Let me know your thoughts on this. Thanks!

1 Like

If you make a blueprint that contains a string variable, you can just set the string to a different thing for each copy of the actor that you place in the level.

1 Like

That is much simpler than I expected. Thank you!

1 Like

Just make it ‘instance editable’

image

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.