Talk about a thourough answer
Here’s my result, Above is the new code using datatables to do everything that needs to be done, commented below is the old code i was using before, it had different sections for different models since they weren’t very cross compatilbe (I’m changing out the mesh ,anim blueprint and setting some morphs based on these conditions)
Just adding a character name option to the structure in the datatable does the trick, i’m using that for that last switch statement you can see at the end of my new code, moving the camera around based on the three possible characters.
This isn’t really code i’m gonna be using in any game, i’m just practicing, pointing out data tables to me was a big help this is kinda revolutionary. The more complicated the code the more useful they seem like they’d get.
The benefit of the new code though is that adding in more characters is a lot simpler, i just add them to the datatable and they’ll automatically be supported by the code if it was done right, theo nly thing i’ll have to manually change in the code are the camera adjustments.