Hello, I want my character to have stats life health, attack, defence and so on. What’s the best way to go on about it without creating a C++ class as I had a problem in the past transferring classes from one version of Unreal to another?
Ok so I create the struct and just embed it in each fighting character in the game?
Yeah, or if the fighting characters share the same parent you could implement it there and let it be inherited. Alternatively since a struct is just a bundle of variables, you could also just make the variables individually and not use a struct. Just depends how you’d like to organize things. using structs is just a method to reduce coding the same thing again and again.
Thanks, I implemented it and work great! Thanks a ton!
you could make a struct of the stats, then create a variable with the data type of the struct in the parent character class/blueprint.