Hello there ! I’m currently tearing my hair out on an issue.
I’m working on a top down shooter, like a bullet-hell / rogue like. Right now, I want to work on the scalability of the project and start to store weapons data on a Data Table. But I struggle to figure out how to use my data (minDamage, maxDamage, range, …) that is store in my Data Table, with my attack function.
Till now, I’ve done my tests through BP Child of a Weapon Base BP parent, that store basics variables like damage and so on. Used the class of the actor to spawn the right projectile and do the stuff (init, destroy, range, attack speed, on hit, …).
BUT, Now that I want to use Data Table to store data of each weapon, I can’t figure how to use these data, for the simple reason that I need an actor class to spawn my projectile, and I don’t know how to link my data from DT to the right actor, then store it as my current weapon to shot the right projectile.
So far, I’ve :
- A Data Table that store needed data (minDmg, maxDmg, range, attackSpeed, mesh, …)
- A WBP that display my current inventory (via an array of name and a Get DT Row)
- A BP Player Character where the fire event is called and the projectile is spawned
- A base weapon actor that handle projectile logic
How can I achieve my goal ?