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"

Projectile movement laggy on clients solution

Hey everyone,

I'm trying to understand online multiplayer and the problem i have is with projectile blueprints that have a projectile movement component moving not very smoothly on the clients. I read up on this and this is the solution i ended up with:

  1. When the button is pressed, server spawns the projectile and attaches it to the player character(Run on server, reliable)

  2. When the button is released, server tells everyone to release the projectile and activate the projectile movement component(Run on server event that calls a Multicast event)

This seems to work correctly as the movement is smooth for all players, but i'm not sure i understand why :s

My thinking is that only one projectile is spawned, on the server, and then everyone is told to simulate it's movement separately (replicate movement is unchecked in the projectile blueprint). This would also explain why the On Hit event of the projectile is called on every client even though it's nothing in it is replicated. Am i understanding this correctly and is this the best approach to handling projectiles with minimum net load impact?alt text

Product Version: UE 4.18
screenshot-1.png (527.2 kB)
more ▼

asked Feb 05 '18 at 01:29 PM in Blueprint Scripting

avatar image

1 1 3

(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