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"

Create Player with parameters


I'm working on a game that will feature a combination of split-screen multiplayer, with online multiplayer. This is what I have so far, to assign an integer ID to each local player on spawn:

alt text

As you can see, I've attempted to connect the Return Value of the Create Player node, to the SET Local ID Target node, but the Target node is a Player Reference, so it refuses to connect. Is there any way I can assign an integer to a splitscreen player on spawn?

Product Version: UE 4.12
untitled.jpg (66.7 kB)
more ▼

asked Jul 10 '16 at 08:18 PM in Blueprint Scripting

avatar image

102 19 20 24

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

1 answer: sort voted first

Have you tried casting your output to the desired Player Controller class?

more ▼

answered Mar 17 '17 at 03:52 PM

avatar image

21 2 3 4

avatar image TornadoStorm Mar 17 '17 at 05:13 PM

Hello. Thanks for reminding me on this! Yes I fixed it a while ago through finding out myself some ways I could do what I wanted. I think it involved casting to the player object, then setting a variable I called localID to it corresponding with the number of splitscreen players already in the game.

avatar image mightyenigma Jan 22 '18 at 05:15 PM

TornadoStorm, I am attempting this same thing, have splitscreen clients connect to a splitscreen listen server, and have all the players from each be in the same game.

I have succeeded in getting that far with it, but when it spawns the joined client's pawns, the controllers lose their possession an instant later and are banished to a black void.

Just before spawning, my Print nodes report their playercontrollers have an ID of -1. Could that be why they get teleported into a back void?

My question where I am having this problem is at this link: https://answers.unrealengine.com/questions/749524/joining-session-playercontrollers-all-are-1.html

If you can help me figure this out I would greatly appreciate it.

(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