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"

Clients spawn doesn't work with Start as Spectator

Hello. I've been trying to setup spawn for players in Multiplayer Game. As far as I am using seamless travel, because of Lobby system, I have to somehow detect when players loaded whole map (with spawning items and so on). I am doing this with Event Tick on MyPlayerController, as you can see on First Screenshot. I've added "Is Map Loaded" in level blueprint, which setting as true when all spawn functions fired. ClientPostLogin is replicated and it's including changing state of the game, setting up UI and RespawnPlayerEvent. The thing is that RespawnPlayerEvent working only for server, others just spawn as Spectators. If I untick "Start Players as Spectators" in GameMode - then they spawns as Characters. But I need this tick. That's why I am asking you if there are some troubles with my spawning. PlayerControllerEventTick ClientPostLogin Respawn

Product Version: UE 4.9
Tags:
more ▼

asked Apr 18 '16 at 09:21 PM in Blueprint Scripting

avatar image

4e6yp
1 2 3 5

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

1 answer: sort voted first

Well, I solved this riddle. First of all, looks like I can't Call ServerOnlyEvent inside of ClientOnlyEvent. Also I don't need Delay in RespawnEvent, it can cause some problems. Now I call Respawn Event before ClientPostLogin Event, and it works perfectly fine.

more ▼

answered Apr 20 '16 at 02:56 PM

avatar image

4e6yp
1 2 3 5

avatar image Inph1del Apr 27 '16 at 09:41 PM

Mind sharing your resolved blueprints? Im trying to figure out what's possible when a game starts with delayed start. Such as the ability to to set a team etc but can't seem to get it to work because the spectator can't call server function.

avatar image 4e6yp Apr 27 '16 at 09:59 PM

I could share my blueprints, but they are a bit messy... I think you have to call functions on GameStateBP, if you want to do something with spectators. I made kind of delayed start by creating ServerEvent which exist on GameStateBP. When all players traveled from lobby to map - start countdown on server by calling Event from GameModeBP. GameModeBPGameStateBP I don't know how correctly use Delayed Start option in GameMode settings, so I created ENum for Session States and just change states when it's neccessary. Hope it helps somehow.

11.png (74.6 kB)
12.png (77.5 kB)
(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