So, I’ve been bashing my head against a wall for the last few days trying to create the starting of a class system that allows players to pick a specialization like; hunter, tamer, or build. I started off hoping that the update to the dev kit would show the blueprint scripting behind the SpawnUI widget. Ideally, I’d just be adding a few buttons on the character creation screen to allow them to pick their class, but without the scripting for the SpawnUI widget, I’m not sure how to go about doing it that way.
My next attempt was to have the player pick a class when they hit level 10. I read every guide I could find about switching characters mid-game but most of them use a key input to cycle through a number of pawns as seen here: https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/PossessPawns/Blueprints/index.html or https://www.youtube.com/watch?v=EsOk-tERCaQ
So, I’m starting to feel on the right track, but I want the pawn switch to happen through an UMG pop-up screen that appears when the player hits level 10. I found this post: https://forums.unrealengine.com/showthread.php?69079-Using-a-UMG-button-to-select-a-character which goes through the process nicely, but I got stuck with one spot. On the very last picture, my Cast to Player Controller looks different than the one in the picture, and I couldn’t figure out what the very last node (Set) is. Here’s my picture for reference:
A few issues that I’m still stuck on:
- This method doesn’t know if the pawn is female or male.
- I’m not sure how to transfer the character customization and inventory to the new pawn.
- I haven’t figured out to call a player’s level so that I can trigger the event when they hit level 10.
- The array used in the Level blueprint creates the array by referencing the pawns that are placed in the Level. This won’t work for actual usage, but I’m not sure where/how to create the same array elsewhere.
At this point, I’m close to scrapping the project as it seems to be beyond me at the moment, but I thought I’d post here to get some discussion around this topic. When I started Ark, I felt it was a perfect game for specialization/classes which is why I was drawn to this mod idea.