Is it possible to implement with Blueprint Structs?

Aifraim
Sat, 27 Jul 2019 17:51:36 +0000
Blueprint

I working on an Inventory system, and i have an Item struct which contains the name and the value of the item, but i stuck on the idea, how can i make a proper way to contain both the item dmg and the armor it provides. The problem is, that if i use all variables in 1 struct i get a tonns of unused data if I create only a weapon (in that case armor is 0 for example, and unused).

Is there a way to implement a weapon item from the main Item struct via blueprints, and still can refers as an item obj?

5 posts - 1 participant