Set static mesh don't work

I have a small script, I get a static mesh from a data table, put this mesh in a variable (number 1), call the class, pass the mesh from variable number 1 to the called class variable, call node “set static mesh” and assign a new mesh from the variable, but it doesn’t work, what am I doing wrong?

It’s kinda hard to tell, but I think either the mesh you’re getting from the table is wrong, or the target for the ‘set static mesh’ is not pointing at anything.

Do you get errors?

No, that’s not the point, I realized what the problem was and was going to close the question, but since you wrote, I’ll tell you what the problem was.

I have been working on this issue for almost 2 days and only now realized how to solve it… You see, I have a parent class of weapons, from which I create a child class of each weapon. Every time I get a weapon from the inventory, I essentially spawn a new child class. in beginplay, I call a function that should get a mesh from a variable and assign it, but since it is essentially a new child class, the variable is empty and node does not work (returns false). I had to do a big pre Save function and now when I create a new children’s class, I pull mesh’s from the save file…

Perhaps I should have spoken out, but still, thank you for your attention!