How do I "Set Scalar Parameter Value" to only affect one instance of a class Blueprint?

How do i “Set Scalar Parameter Value” to only affect one instance of a class blueprint object and not every single one that shares the same parameter name?

In my example i’m trying to set a selected part of a material to loose it’s emissiveness when i shoot it with a projectile.
However, since i’ve copied multiple instances of my object they all share the same parameter name. Meaning they all get affected together.

Did you make sure to create a dynamic material instance in the “Construction Script” and then assign it to your mesh?

This does the same thing, yes ?

Thought i’d provide some hopefully helpful visuals.

One instance.

5401-one+instance.png

Multiple instances (in this case two)

You are using the generic chair variable so that might cause it to hit all chairs.

I have been researching this lately and I might be able to help.

Since you are shooting, this should be pretty straightforward. Use a Single Line Trace, and then Break Hit Result. Take the Hit Actor and plug it into dynamic material instance.

I hope this works for you because I am about to work on the same kind of stuff. :slight_smile:

@Zeustiak

Thanks. I’ll try the tracing out.
This is what i’m using so far. (commented on some stuff)

Note: when i shoot the original (the one to the right, just as i did in the image above) they both glow and keep flickering BUT only the one i shoot changes color. But when i shoot the copied one, (the one to the left in the image) they both stop glowing and the one i shoot changes color. (i.e. the color changing works by instance, but not the emissiveness, and for some reason emissivenes outcome depends on what order i shoot them)

Still unsolved. Been mucking around with “line tracing”, but it doesn’t seem relevant for what i want to do (unless i’m understanding it completely wrong).

I had the same problem right now, and i just changed names of instances :wink: they are acting as one if they have same name - originally set name ‘none’.