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 sound at location frezze Network!

Please tell my please why BP Node "Spawn sound at location" freeze network. Here logic: PLAYER HIT BUTTON - CHECK AUTHORITY - - IF SERVER - "CLIENT FIRE EVENT" ( Multicast) - IF CLIENT - "SERVER FIRE EVENT"(Run on server) call ""CLIENT FIRE EVENT" ( Multicast)

Then if sound play we have freeze 2-3 sec.... on all clients

Also i try to attach sound on gun aninmation without RPC but if is play freeze to :( alt text

Product Version: UE 4.18
Tags:
bp.jpg (127.8 kB)
more ▼

asked Feb 21 '19 at 02:00 PM in Blueprint Scripting

avatar image

Scanarri
8 1 3

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

1 answer: sort voted first

You are looping the event calls infinitely:

  1. Call Server event

  2. Server event calls Multicast event

  3. Multicast event calls Server event (goes back to #1)

Here's how you replicate sound to all clients properly:

alt text

Below is the event flow:

  1. Call PlayCollapse01Sound event

  2. PlayCollapse01Sound event calls Server event ServerPlayCollapse01Sound

  3. Server event ServerPlayCollapse01Sound calls Multicast event MulticastPlayCollapse01Sound

  4. During Multicast event MulticastPlayCollapse01Sound, play sound for each player and stops right there

CAUTION: Default UE4 audio settings will give you false impression of sound to each client. You have to check the following audio setting to hear sounds correct way on all Clients including ListenServer:

  1. On Play Mode Settings, click Advanced Settings...

    alt text

  2. On Level Editor - Play settings, check Create Audio Device for Every Player:

    alt text

more ▼

answered Feb 21 '19 at 04:27 PM

avatar image

Chyros
1.2k 8 4 8

avatar image Scanarri Feb 21 '19 at 04:35 PM

Thanks a lot:)

avatar image Scanarri Feb 21 '19 at 04:45 PM

Create Audio for each player fix the freeze.

(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