Link multiple component object references to single function pin

Hello,

As in the photo, it’s possible to link multiple component object references to a single pin, but that doesn’t seem to be the case when it’s a custom function. Any suggestions?

Thanks

The thing is that deactivate is a function of ActorComponent so it can take in any class that derives from it.

Your Exhaust Activate would work on many under the circumstances that
a) you would have a base exhaust class that implements “Exhaust Activate”
b) all of the above Exhausts would be of base exhaust or a class derived from it.

Then all could pin to the target.

Not sure I fully understand. On your point a) the components are all copies of a Niagara System that I’ve added to the blueprint – how would I implement my function within the NS base class?

I gather that I’m already meeting point b) then?

Appreciate the guidance so far

What 3dRaven means is that this “feature” can only work with the Target pin, so you’d have to restructure your code in such a way.

Create a custom Niagara component

inside of the new bp add the intended function

Now in your actor add you custom Niagara component and you can call the same function on all components that derive from this custom component (hooking them up to the functions target pin)

Hello,

That works – but only, as Chatouille points out above, for the target pin. Is there any way to have it work for additional pins, like this:

MultipleObjectReferenceToPin2

Thank you so much for the clear screenshots and instructions!

How would the function interpret multiple variable to a single input? It doesn’t make sense.
You would need an array of inputs and manage them on the side of the function.
Or you could pass in an array of type struct.

So looks like you’re right, but just so you can see what I was trying to do:

As you can see, it’s just connecting to targets within the function, so, since it works when it’s not collapsed to a function, I was hoping I could condense/re-use it within the function.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.