I’ve been messing around with unreal engine 4 for past 2 weeks or so, and i started to work on a 3rd Person RPG game. currently im having a problem when it comes to ingame items.
I have an Item class which represents all attributes of an Item and its based on AStaticMeshActor class
im basing this game on a game i written in the past in python where i had a database which had all the items, and I created them ingame by creating instance of ItemClass and passing in the data from the database.
How would i create an asset of a type MyGameItem based on StaticMeshAsset which would have the attributes such as “damage, attack speed, value, item level” etc. and be able to place them within the editor into my game world?
I assume that ingame between character inventories i could just create a new MyGameItem and pass in the parameters to define the item ingame.
so far the only way to place my items into my game level within the editor is to drag the static mesh of the item into the game world, then convert the actor to MyGameItem, and then set each of its values (Name, value, icon, required level etc.). is there any way to “generate” assets based on my item class and data from file/database?
Preferably within c++
any help with this would be much appreciated, if you have any questions just ask.