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 actor in multiplayer by Beginplay

Hi, I want to spawn 2 cubes right next every character when I start the game, one for server and one for Client. Here is my blue print.My problem is: when I star the game, I have 2 cubes, bui they are all right next to Server character.What should I do to spawn a Cube for every player and right next to them? alt textalt text

Product Version: UE 4.20
Tags:
201921.png (90.5 kB)
2019211.png (1.8 MB)
more ▼

asked Jan 31 '19 at 04:46 PM in Blueprint Scripting

avatar image

windlox
35 1 1 4

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

1 answer: sort voted first

GetPlayerController with index of 0 in a Server call will always return the Server's PlayerController. Instead replace it with GetController of the Character/Pawn. That way you get the correct PlayerController in a Server call.

more ▼

answered Jan 31 '19 at 05:00 PM

avatar image

Chyros
1.2k 8 4 8

avatar image windlox Feb 01 '19 at 04:52 AM

Thank you !

(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