Need help modifying a fab template to use a flipbook from a char select screen

So I’m using this Fab template

It’s currently setup to swap meshes, but I wanted to use flipbooks instead for an HD2D look.

I was able to get the lobby select to switch the flipbooks, but no matter what character I select, it’s still only loading the BP_Base_character flipbook, which is either nothing or a pre-defined one. Ie. I select Char4, it loads Char1’s flipbook.

Things I’ve tried

I know this doesnt work, but its the closest I’ve gotten. I know its because of the For Loop, but I can’t figure out where to put this in order to bypass that. Currently, its at least loading Char4 (because its going through the entire list and ending at the last option).

This is my lobby character selection widget.

BP_Base_character

I know i’m doing this all wrong, but I have no idea how to fix it and I’m tearing my hair out, lol.

I’ve tried referencing the structs directly, and that works, for a single character. But it needs the variable in order to change the BP_Base_character depending on the players choice in the lobby map.

Anybody have any ideas?

Thanks!

Hey @FormX how are you?

As you said, the problem is the for loop! Instead of doing that, you can directly search for the character you chose in the lobby and get all the data you need from it!

I assume you are using the data table to get that info. In the lobby, you should be able to save its Index from the table. So, instead of looping it, drag its pin and search for “Get (copy)”.

This will allow you to pull the corresponding flipbook from that structure! Avoiding any other unnecesary operations!

This should work with the rest of your blueprint!

Let me know if this worked or if you need more help!