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"

Client Side Get Controller Returns None

I am creating a networked game based off of the Top Down template to create an RTS style game. When running from the server end, everything works fine and the character moves and is replicated onto both screens. However when I try to move the character on client side it prints a warning saying that the controller is none. I have the Simple Move to Location call Running on the Server, but it seems when I get the Pawn's controller to move him, it returns None for the client and the correct value for the server. Does anyone know why it wouldn't return the same value for client or server?

Product Version: Not Selected
Tags:
more ▼

asked Feb 27 '15 at 10:54 PM in Blueprint Scripting

avatar image

Adam Holcombe
6 1 1

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

1 answer: sort voted first

Server contains all the PlayerControllers, its own plus those who are connected as clients. Each client only contains the playercontrollers connected to IT (usually one for the mouse and keyboard, and any more you explicitly created and might have gamepads hooked up for).

A client can't, as far as I know, be aware of playercontrollers other than its own. If you need a client to talk to other player controllers, I think you have to have it tell the server to pass the message along.

I think a client machine can see other machines' PlayerStates, though(?) Just not other machines' PlayerControllers.

I think. I'm new to the multiplayer thing too.

more ▼

answered Jan 22 '18 at 04:46 PM

avatar image

mightyenigma
3.8k 18 23 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