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"

Network Replication spawn emitter

Hi, i'm trying to make a trace and spawn an emitter at the hit location, but i'm not sure how i can replicate the emitter to all clients. if i'd run the function on all clients with a multicast they would all get different hit locations and actually i don't even want to run the whole function on the clients because of the apply damage, just the spawn emitter part. i'm new to ue4 so i have no idea how to make this work.

here is the bp http://i.imgur.com/DHOUdO3.jpg

Product Version: Not Selected
Tags:
more ▼

asked Oct 03 '14 at 12:27 AM in Blueprint Scripting

avatar image

Flexes
1 2 3 4

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

1 answer: sort voted first

Can't you seperate the apply damage function from the emitter function?

I guess normaly you would just use a replicated function (custom event) like you did on the left side, to let the server create the emitter and maybe multicast it. If you need the hitpoint, you can just use the hitlocation as an input for your custom event, similar to the text variable you passed to the server.

I would cast the line trace on the client and than perform a replicated function (run on server) with the hitposition and let the server spawn the emitter. If hes set to replicate, than it should work. After that, i would use the SwitchHasAuthority and deal damage. Or with a sequence splitted.

more ▼

answered Oct 03 '14 at 01:16 AM

avatar image

eXi
6.7k 330 181 463

avatar image Flexes Oct 03 '14 at 05:03 AM

got it. works now. thanks. i just added a return node with the location from the trace in the explosion function, call a custom event that is multicast after explosion that uses thie location value from the return node and then spawn an emitter on that multicast event using that location value. thanks.

(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