How can I use this data table to set weapons with from my actor instance

Hi all! I am trying to use the construct weapons function to call and set an object instance through my data table. I have tried all sorts of different ways but I cant figure it out. Please let me know if I need to post more photos/information.

Thank you in advanced!




what problem are you having exactly? the code looks ok from what i can see? maybe something is just invalid?

Hi thank you for your reply. I should’ve made a more detailed post so my apologies. So I have a custom made inventory system and I am incorporating a pack from unreal marketplace that uses data tables for multiplayer weapon animations.

Okay so right now the skeletal mesh is being set directly from my data table based on this struct:

IMG1
IMG2

Because of this it is not interacting with the inventory system I have set up.

The inventory system is based off of actor instances named “itemworld…”. So in my inventory system, you can place the actor in world and see properties such as the name, damage (if weapon), weight, etc.

IMG3

The item actors are based children of a blueprint class:

IMG4
IMG5

Whenever I tried incorporating the item actors into the data table it always spawned empty. The different ways I tried were by adding to the struct the item actor class and trying to spawn the actual item actor from the data table. I’ve noticed if I just spawn the skeletal mesh, when I do line trace to hit actor and populate the item information in the UI, none of the information about the item would show.

There is a weapons base class that I added a reference to “SKM” which is the blueprint class that holds the variable with the skeletal mesh and item info.

IMG6

So basically I’ve tried spawning the item actor from the data table and it doesn’t work but I also tried making a child class from the weapons base that holds reference to “SKM” with the class reference to the item actor.

IMG7

This does spawn the book correctly but I cant pick it up and equip it to the character like I can the meshes spawned from the data table. The animation of picking up happens but the item actor never gets equipped.

IMG8
IMG9
IMG10
IMG11
IMG12
IMG13

Its only letting me put one image per post? So I will add images based on reference to this post.

I can add more information as needed. Thank you!

IMG1-

IMG2-

IMG-3

IMG4-

IMG-5

IMG6-

IMG7-

IMG8-

IMG9-

it just sounds like something is invalid, you’ve got a tonne of potential fail points there, branches, row not found, invalid ref etc, starting putting print strings on all off those and see where it fails out, or you the breakpoints if you know how

When i try to add the actor reference in the data table it says “select actor from viewport” but wont actually let me select anything.

Also nothing is giving me errors and I checked everything with strings

on the BPSKM? i think you’ve got the wrong asset type, check in the struct if its skeletal mesh