Blueprints Create Custom Struct

Hello all,

I am fairly new to using Unreal Engine 4 and have a question about custom structs in blueprints. In my project the player will be able to use lots of different tools, and I want to be able to store data about these tools, eg. their damage per second, if they shake when you are using them and so on. Is there any way to create a custom struct that I can add variables to in Blueprints? If not, is there another way that I would be able to achieve what I am trying to do?

Thanks!

Structs are perfect for it. I don’t know better way.

To save your time (weeks or months) I suggest to check this inventory tutorial:

Here is not bad explained how to save actors, use structs, enums, widgets and everything you need for inventory system. Not my tutorial, but I have inventory done similar way and I think this is correct.

Hi @Everynone - can you send me link to good tutorial how to work with DataTables? What I found confused me a little :slight_smile:
THX!

You’ll be able to do everything you described with structs:

Also, look into DataTables, they are static struct based databases where you can store bulk data.
Every row in a DataTable is a struct which, if you choose to, can contain additional nested structs.

edit: also, what Vaheva said

2 Likes

Thanks. I just wasn’t aware how to create these structs. Your image helps a lot.

I actually do not know any specific I can recommend, but I really like this gent’s style. His WTF series has always worked for me:

aaa thanks! I forgot WTF series :smiley: