# Function array help!

**URL:** <https://forums.unrealengine.com/t/function-array-help/432301>\
**Category:** Rendering\
**Tags:** stencil, unreal-engine, Array, Blueprint, question\
**Created:** [August 23, 2018, 4:46pm UTC](https://forums.unrealengine.com/t/function-array-help/432301 "2018-08-23T16:46:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Retroosen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Retroosen](https://forums.unrealengine.com/u/Retroosen)\
**Post date:** [August 23, 2018, 4:46pm UTC](https://forums.unrealengine.com/t/function-array-help/432301/1 "2018-08-23T16:46:24Z")

</div>

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.

 ![251397-screenshot-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/6/cf67f728865565a0659fa332fd4f60ca1b88f02d.png)

 ![251396-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/8/798b32894acb7f12845d0f27d2c54f69fc2775c3.png)

 ![251395-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/3/14349c4acc808ae47e4e8f5969f26952a4b124c7.png)

---

<div class="post-metadata">

**Author:** ![Retroosen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Retroosen](https://forums.unrealengine.com/u/Retroosen)\
**Post date:** [August 23, 2018, 4:59pm UTC](https://forums.unrealengine.com/t/function-array-help/432301/2 "2018-08-23T16:59:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Retroosen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Retroosen](https://forums.unrealengine.com/u/Retroosen)\
**Post date:** [August 23, 2018, 4:59pm UTC](https://forums.unrealengine.com/t/function-array-help/432301/3 "2018-08-23T16:59:29Z")

</div>

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.
