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"

How to multicast via functions or within other blueprints

I have a weapon_base blueprint that has a fire custom event which has a muzzle particle effect. I also have a player blue print that calls the fire function referring the weapon_base. I want to multicast the fire effect within the function. I know how to do it withing the player blue print, but how do I do it via referring another blueprint?alt text

(this is an example on how I need to do it via withing itself, but I'm trying to do it via a custom function. alt text

Product Version: UE 4.18
Tags:
yeah.jpg (367.0 kB)
more ▼

asked Jan 06 '18 at 10:57 PM in Blueprint Scripting

avatar image

crazysketch85
16 1 1 8

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

2 answers: sort voted first

Hey there, for those types of effects i would recommend you doing that on the animation, as a anim notify, that way you don't need to program anything.

more ▼

answered Jan 08 '18 at 09:13 AM

avatar image

xlar8or
6k 162 129 305

avatar image crazysketch85 Jan 15 '18 at 09:47 PM

Yes but this animation is coming out of the weapons muzzle when the player shoots.

avatar image crazysketch85 Jan 15 '18 at 09:48 PM

How can I get access to the weapon muzzle through the player models skeleton?

avatar image xlar8or Jan 16 '18 at 01:42 AM

In my case the weapons the player holds are skeletal meshes so for every animation you have a player and a weapon animation. i just create the muzzle flash anim notify in the weapon animation.

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

In order to run a multicast event from a client, the Pawn/Character needs to own the weapon Blueprint. An instance of the weapon Blueprint needs to exist on the server and the clients then you can call server events from the client through the server to the other clients. Do this by first making a "Run on Server" event followed by a "Multicast" back to the clients.

Note that you can only "Set Owner" on the server.

more ▼

answered Jan 15 '18 at 11:14 PM

avatar image

GarnerP57
901 3 4 8

(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