can someone try to explain how I can set a players class in verse? The documentation is kinda ■■■■ and makes looking for relevant functions and stuff an abysmal and fruitless endeavor. All i’m trying to do is set each player to a random class at the beginning of the round. I got to the point where each player is stored in an array and a for loop iterates through. All I need now is to find a way to set each individual player, as the loop iterates, to a random class, something that should be very simple if I knew what function to call (assuming such a function exists). An alternative would be to use the class selector device with its “change player to class” option but I cant figure out how to activate it
I’m very beginner to verse and uefn, so I would appreciate it if someone would lend me a hand
I’ll agree the documentation is a bit lacking - you’ll have to have a bit of patience as Verse itself is very new, and I think getting down the particulars of it’s implementation are higher on the list right now.
The closest thing you can find to a full documentation is the digests that are provided within the verse project itself. If you have the code opened within Visual Studio code, you should find an area that contains the API for Verse, Fortnite, and Unreal Engine.
I was able to use a text search to find a class which I think will help you in changing the class of all players:
You’ll likely need to create an @editable attribute to assign an instance of the class_and_team_selector_device to the device you’re using. Once you’ve got that set up, you should theoretically be able to change the class of each player using the functions available on that device.