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 does not replicate explosion to other clients but replicates a projectile

Hi,

When I press fire button, the client tells the server to spawn a missile, and with this clients can hit other clients (tested and works on a dedicated and non ded* server).

However, when I spawn a particle effect, on the server I can't see it on the client, only the server window can see both effects, the clients can't see it. Why is this, if the client can see the missiles, then why not the effects?

I KNOW that visual effects should not be run on server, waste of net, but should be done locally. But I want to see the opposing client firing.

How can I run a particle effect on the server, and see it on all clients, because my server is not replicating this.

Thank you,

-Mo

Product Version: Not Selected
Tags:
more ▼

asked Mar 17 '16 at 09:11 AM in Blueprint Scripting

avatar image

Moynzy
219 19 17 24

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

1 answer: sort voted first

Effects should be run on the server because there's a possibility that you are a standalone server, i.e. you host a game and have graphics.

To replicate particles to all clients, create replicated method of Multicast type that is called on the server, or make the gun muzzle flash part of animation (via Anim notifies, if your gun is a skeletal mesh).

more ▼

answered Mar 17 '16 at 10:55 AM

avatar image

MiKom
535 17 10 39

avatar image Moynzy Mar 17 '16 at 11:26 AM

Yes, this is a non dedicated game.

So can I talk you through this.

I press right click, and If I am the server then play the particle effect. If I am not the server, run a multi cast function that plays the effect? Is this it?

avatar image MiKom Mar 17 '16 at 12:22 PM

You don't need to do any checks. Multicast function is also called on the server:

https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Actors/RPCs/

(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