Detect if there are Multiple Gamepads at Game Start

I’ve listed this as Blueprint but if I have to C++ it, so be it. I’ve never done that before but this is kind of an important part of my plan so I’ll deal.

Context: I’m trying to determine if 2 gamepads are plugged in so that I know whether to set “Skip Assign Gamepad to Player 1” as true or false. I’ve figured out how to change pretty much any project setting I might want to change at runtime, but I cannot see a good way to determine if I have 2 gamepads plugged in, and therefore no way to get the information I’d need to change said settings.

How would I check for multiple gamepads? Again, C++ is fine if I HAVE to, but if there’s a Blueprint fix, that’s what I know right now.

I’ve done a lot of googling trying to get something to make sense of this and this seems to be the closest solution to what I’m trying to do. https://www.reddit.com/r/unrealengine/comments/4vxsuv/how_do_you_detect_a_second_gamepad_for_splitscreen/

However, since I know next to nothing about C++, I have no idea how to make this work. I have no idea what he’s doing here or where he’s putting the code. it says it’s in the begin play section, which doesn’t exist by default when I generate my own gamemode subclass, but if I try and add a begin play section to either the header or cpp file, I get a compiler error telling me I can’t do that.

Ok so I didn’t find a solution to what I was ASKING for, but I did find one that WORKS and basically does what I need it to do. It’s on my Reddit. Needs some refinement yet, but the important thing for now is that it works.

https://www.reddit.com/r/unrealengine/comments/jgc0j5/working_on_a_local_multiplayer_game_and_need_a/