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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Actor location not replicating

So I'm trying to move the player on the server, but on the client the player isn't moving at all. I've set up a minimal example:

alt text alt text

And the player doesn't move at all when the set actor location function is called (the player isn't at 0,0,0 so the change should be seen). I'm guessing that I'm not understanding some part of replication, but as far as I know it should work :/

If I run "SetActorLocation" anywhere before "Server Move In Direction", meaning I run it on the client, then the actor is moved properly as it should.

Product Version: Not Selected
Tags:
more ▼

asked Jan 29 '15 at 05:59 PM in Blueprint Scripting

avatar image

Symphonym
5 4 4 7

avatar image Symphonym Jan 29 '15 at 06:51 PM

I tried passing the player (reference to self) as a parameter in the replicated function both as a reference and as a non-reference and printed the display name on both sides (client and server). In the blueprint below the display name is BP_TilePlayer_C1 which is what it then passes on to the server, but on the server side this value will get printed as BP_TilePlayer_C. Shouldn't they be the same since C1 is the object that was passed to the server, because I suppose this means the server isn't modifying the correct actor.

alt text

replicatetest3.png (88.4 kB)
avatar image Symphonym Jan 29 '15 at 10:07 PM

So I reparented my player as a character and now it works just like it should (the first two images works). I used a pawn because my game is tile based and don't as such I don't need all the functionality of a character (other than the animation functionality, but I'm using static meshes as placeholders). Anyway, anyone know why it didn' t work when my player was a "Pawn" and not a "Character"?

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

0 answers: sort voted first
Be the first one to answer this question
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