Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to have different classes in multiplayer?

I set up multiplayer and got it to work with steam, I also have several "special abilities" like a jet pack, speed boost, stealth generator, and a shield generator. However when a friend and I load into my server to test out the game, we spawn in with all of the abilities. How would I go about setting up a UI before you click spawn that would allow you to pick one of those abilities?

Product Version: UE 4.12
more ▼

asked Jun 20 '16 at 12:24 AM in Blueprint Scripting

avatar image

45 5 4 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I would suggest looking into UMG https://docs.unrealengine.com/latest/INT/Engine/UMG/QuickStart/ for the UI.

The UMG/Widgets will facilitate in allowing the Player to communicate with its corresponding owner(PlayerController), to let the Server side PlayerController(Server owns a copy of all playercontrollers, while client only owns its own) to change the data regarding abilities,classes that you should store in a custom PlayerState.

When the Player is ready to spawn, press some sort of spawn button, letting the corresponding owner(PlayerController) tell the Server's PlayerController that it wants to spawn and do so accordingly with the proper settings based on the custom PlayerState. That could be spawning different Pawns/Characters, or having a Pawn/Character with different settings to specify which abilities it has, such as some, all or none.

more ▼

answered Jun 21 '16 at 12:30 PM

avatar image

130 3 58 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question