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"

Server and Client Last Movement Input Vector

I have a character. I need access to its last movement input vector on the server. I am adding to the input vector using the "Add Movement Input" blueprint call. alt text

I can get this vector on the client side, but I cannot get it on the server. I read that both client and server do a simulation and the client makes corrections based on the server's state.

Somehow this movement input vector is being sent to the server from the client. I want access to it on the server without having to resend it from the client on every frame which would cause unnecessary network traffic. Is this possible through blueprint calls?

Product Version: UE 4.21
Tags:
capture2.png (56.0 kB)
more ▼

asked Dec 14 '18 at 10:39 PM in Using UE4

avatar image

GarettHunter
35 3 5 9

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I looked through some of the engine code and it appears that this vector only exists on the executable belonging to the local player controller. I do not think this value gets replicated to the server.

The acceleration on the server is affected by this input vector. Their direction are usually the same if there is no other values operating on it.

For my problem all I needed was the direction. I think this should work, but it it does not I will reopen this question since the input vector is definitely the value I will truly need.

more ▼

answered Dec 16 '18 at 04:51 AM

avatar image

GarettHunter
35 3 5 9

(comments are locked)
10|2000 characters needed characters left
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