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"

Spawning the same character more than once

I am trying to make an online game with a maximum number of players per room. I did the spawning method in Blueprints and for some reason it spawns the host multiple times instead of waiting for other players to join the room.

Also there is an error coming back every time I run the project:

PIE: Error: Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue from function: 'SpawnPlayers' from node: Possess in graph: SpawnPlayers in object: BuildingEscapeGameModeBase_BP with description: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue

I have tried to look it up and all I found is using IsValid node but it does not necessarily solve the problem. I could use some assistance with this please.

alt text

alt text

alt text

Product Version: UE 4.18
Tags:
more ▼

asked May 20 '18 at 12:23 PM in Using UE4

avatar image

Rafael Uzumaki
1 1 2 3

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

1 answer: sort voted first

Try watching or printing the Index variable you're using before it is used to Get Player Controller or to Possess pawn, and afterward, access the PlayerController it retrieved and print out the index it actually has. see if they match for the remote clients and not just for the server machine's players

more ▼

answered May 20 '18 at 07:45 PM

avatar image

mightyenigma
3.8k 18 20 20

(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