How to turn an Integer variable to have multiple values and then break each value separately?

I’m working on weapon customization logic and I’ve hit a wall with this. It sure seems something easy but I cannot figure it out.

When I equip a silencer on the barrel, I want to have multiple stats change and I get this done manually as shown in Image 1.

What I want to do, is control those values through a variable.

Image 2 shows there are multiple values of the integer variable and I did set those, I just cannot find a way to separate the value outputs to pin them in “Accuracy” “Damage” and “Critical Hit” nodes on the Image 1

2 Likes

How does image 2 show multiple values? It looks like the barrel variable is just an int.

3 Likes

Under “Variable Type” there is a dropdown menu (Single, Array, Set, Map)

I’m using SINGLE for now, but am wondering if there is some other option possible to get multiple values out of 1 integer variable?

1 Like

Yes, Array :slight_smile: You can put as many was you want in then.

2 Likes


Ok, I made an array. How do I break the pins to get different outputs and pin them separately into different slots?

1 Like

image

2 Likes

Thank you man, You’re an absolute legend :kissing_heart:

1 Like