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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to stop Particle Spawn for Client

Hey everyone,

I have a problem, I am working on a two Player VR experience. In this experience each Player has a Pen Tool, for marking specific elements, which kind of works. If the trigger is pressed the particles spawn, if released it should stop spawning.

For the Host Player everything works perfectly but not for the client. The client cant stop spawning particles after pressing the trigger.

alt text

I hope someone is able to help me.

Product Version: UE 4.18
untitled-1.jpg (1.1 MB)
more ▼

asked Mar 26 '18 at 02:35 PM in Blueprint Scripting

avatar image

291 5 4 6

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

1 answer: sort voted first

Are you using a listen server? Or dedicated servers?

If your particles are not stopping, you should be able to simply call your Stop function (which would also need to be multicasted) in order to stop the particles.

more ▼

answered Mar 26 '18 at 03:09 PM

avatar image

20 1 6 17

avatar image myavuz Mar 26 '18 at 03:13 PM

I am using listen server and I have a Stop Event which is on "Multicast"

Its the one on the top left

avatar image poke1103 Mar 26 '18 at 03:14 PM

The three components which are being "Deactivated" what type of components are these? Second, when are you calling the "Stop Spawning" function.

avatar image myavuz Mar 26 '18 at 03:19 PM

The three components are particle effects (three colors). I created three different ones, so the user can switch between them. And I am using deactivate because I dont want to destroy the particles. They should stay in air kind of like in tiltbrush.

I am calling the Stop Spawn function on Motion Controller Trigger Release

avatar image poke1103 Mar 26 '18 at 03:21 PM

So when you press your trigger, you are calling StopSpawn_Server top left, which is a multicast function correct? Multicast functions must be called from the server in order to be replicated to all clients. So create a Server RPC which calls StopSpawn_Server and have the motion controller call StopSpawn_Server when you release.

avatar image myavuz Mar 26 '18 at 03:27 PM

No on trigger release I have the function "Stop Spawn Client" which "runs on the server" which then calls the "Stop Spawn Server" which is set to "Multicast".

avatar image poke1103 Mar 26 '18 at 03:29 PM

That SHOULD work. Could you try to print string to make sure it's being called

avatar image myavuz Mar 26 '18 at 03:34 PM

how do i print events?

avatar image myavuz Mar 26 '18 at 03:36 PM

sorry i misunderstood, i am testing now

avatar image myavuz Mar 26 '18 at 03:41 PM

the event is calling but the particles doesnt stop

avatar image myavuz Mar 26 '18 at 03:50 PM

i just tried with destroyComponent and it still doesnt work

avatar image myavuz Mar 29 '18 at 12:57 PM

Still not working! Still looking for answers

(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