x

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"

Spawn two different characters in multiplayer

Hey guys basically i have a widget with two buttons one to spawn a character with a mp40 and one with an AK47. I have default pawn set to none as their is no base character. When the game loads the player can select a weapon and the correct character will spawn. However only the server side is working and the client wide will not spawn. Any help it's doing my head in :P

alt text

Product Version: UE 4.10
Tags:
untitled.png (432.8 kB)
untitled1.png (395.7 kB)
more ▼

asked Apr 03 '16 at 11:24 AM in Blueprint Scripting

avatar image

Pantlessnoodle
21 15 16 20

avatar image bulatburato Apr 01 '19 at 06:48 PM

Hi I hope someone is still reading this. Now I try since days 2 different characters in the multiplayer as a selection to integrate. The only thing I do is spawning. But then the other player can't move his char anymore. Is someone so nice here and would publish an exaple where a multiplayer lan with 2 different characters (BP) and selection menu works? I'm starting to despair! It doesn't seem to be that easy, because there isn't an example on the net!

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

1 answer: sort voted first

Game mode does not exist on remote clients, which means you cannot call event on it from remote client. Widgets not exist on server, so you cant make run on server event in widget bp.

What you need to do its call Run On Server event in player controller which would call game mode event on server.

more ▼

answered Apr 03 '16 at 11:36 AM

avatar image

CriErr
1.2k 57 21 57

avatar image Pantlessnoodle Apr 03 '16 at 11:41 AM

Thanks for the fast reply dude! Ive changed it now so the widget casts to the player controller. Then the player controller spawns a the correct character with the run on server and reliable checked. It is working however the client player is not possessing the character. :(

avatar image CriErr Apr 03 '16 at 11:43 AM

Show spawn - possess event.

avatar image Pantlessnoodle Apr 03 '16 at 11:52 AM

what you mean bud? i have the posses connected to the player controller too

avatar image CriErr Apr 03 '16 at 12:13 PM

So that should work then, but apparently not, which means you screw up something.

Here i have respawn implementation, it's in game mode.

avatar image Pantlessnoodle Apr 03 '16 at 12:41 PM

Thanks man, i took a look seems to be similar i have no idea :/

avatar image Pantlessnoodle Apr 03 '16 at 12:53 PM

Good news! I got it working! thanks very much buddy!

avatar image CriErr Apr 03 '16 at 02:44 PM

Np, mark Question as resolved.

(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