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"

Spawn Emitter On Hit Client problem

Hi everyone!

I'm having a problem with Spawn Emitter At Location's consistency. I expanded the First Person example with network functionality and have the server spawn a projectile and when the projectile hits a surface, the client spawns an emitter at that location. I think the problem is that the client doesn't always register that as a hit, even though the server does. You can see in the video below that the server logs the name of the actor hit, while the client sometimes does not. You can see in the video that the explosion sometimes happens and sometimes it doesn't.

The Projectile is set to replicate and it's fired from an event that happens on the server.

How would I go about solving this issue?

Video of the problem: https://www.youtube.com/watch?v=opLtfURgW_0&hd=1

The Projectile Blueprint: alt text

Product Version: Not Selected
Tags:
problem3.jpg (201.9 kB)
more ▼

asked Jul 10 '14 at 04:25 PM in Blueprint Scripting

avatar image

letoast
62 6 6 12

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

1 answer: sort voted first

I don't know if you still have this problem, but it might be because the actor manages to get destroyed on the server before the client gets to spawn an emitter. (Ie, server gets message, destroys actor, sends destroyed actor message, gets intercepted by the client before the client gets to do the hit-detection). Classic network race-condition

more ▼

answered Dec 11 '14 at 04:58 PM

avatar image

Omberone
314 16 17 33

avatar image uw19 Dec 08 '16 at 04:52 AM

Solved my problem, thanks!

(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