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"

What is the correct way to possess a pawn in Mutiplayer - First Person Example

When I try to possess a Pawn in Multiplayer as a client it crashes. I'm using the First Person Template.

When I hit a trigger box next to a pawn, I'm supposed to possess it. It does this and works in single player, and in multiplayer as the server. But crashes when a client attempts to possess it.

  • Already have the pawn movements setup (Authority only)

  • Game only crashes when a client tries to possess pawn. But not when server does.

alt text

Product Version: UE 4.7
Tags:
capture.png (73.1 kB)
more ▼

asked May 24 '15 at 03:32 PM in Blueprint Scripting

avatar image

Taurian
281 32 51 69

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

You need to make an event that's set to Run on Server and pass your player controller as a variable when you call it from the client. In the server event code do the possession using the controller you passed to the event.

more ▼

answered May 24 '15 at 05:30 PM

avatar image

Skumtron
21 2 3 6

avatar image Taurian May 24 '15 at 05:54 PM

Ok, would that explain the crash? And should I always be passing the value from "Get Player Controller?" (Index 0)

(comments are locked)
10|2000 characters needed characters left
more ▼

answered Jun 19 '15 at 06:59 AM

avatar image

CriErr
1.2k 57 19 55

(comments are locked)
10|2000 characters needed characters left
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