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"

Player Controller for Client

Hello. I am making a multiplayer game, at early stages.

I made projectile spawns and mouse cursor events but those only work for server. Client only shoots to single location. I looked a lot, tried a lot but couldn't figure it out. Tried to cast PlayerController blueprint and take all playercontrollers in the game but didn't work.

Can anyone help?

Product Version: UE 4.11
more ▼

asked Oct 29 '16 at 09:12 AM in Blueprint Scripting

avatar image

127 26 31 38

avatar image Holybreath Oct 29 '16 at 09:21 AM

Here is an awesome multiplayer knowledge compendium, i think you need to watch tutorials as well. Plus, a but more info on the problem would be nice.

avatar image w0hoho Oct 29 '16 at 01:26 PM

I use this to spawn projectiles and it works fine if you are server. Client side only shoots at one location.

I couldn't figure out which node to use on player controller. I get a reference of gameplay player controller but that doesn't work.

alt text

avatar image w0hoho Nov 03 '16 at 02:26 PM

Can anyone help?

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

1 answer: sort voted first

I see that you are using a custom event (Spawn Projectile) that hasn't been set to "Run on Server". If the client is going to execute this event then it needs to be "Run on Server"

more ▼

answered Oct 29 '16 at 08:46 PM

avatar image

722 19 6 26

avatar image w0hoho Oct 29 '16 at 08:50 PM

there is a Run on Server version of this on top the event on the image. Client uses the Run on Server and Server uses the normal version. I put those together with SwichHasAuthority.

(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