Function array help!

Hi everyone, I was wondering how I could possibly make this. I have a function in my character, one input value is an integer, also I have a variable that’s an array of integers. That function what does it sets the custom stencil value of a static mesh by the integer. So the array stores several values, which the function uses to declare the stencil value.

Then in another blueprint where I have a static mesh, in the begin play node I cast to my player, and what I want to do is like choose from the array a variable to set the stencil value to that value.

Solve made a new function in my character and then copy all the outline system to the function and so I was able to call it from everywhere and add an input variable to colour.

Solve made a new function in my character and then copy all the outline system to the function and so I was able to call it from everywhere and add an input variable to colour.