# Pass arguments to bluerint construction script

**URL:** <https://forums.unrealengine.com/t/pass-arguments-to-bluerint-construction-script/279660>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 5, 2014, 4:41am UTC](https://forums.unrealengine.com/t/pass-arguments-to-bluerint-construction-script/279660 "2014-04-05T04:41:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeonNewt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NeonNewt](https://forums.unrealengine.com/u/NeonNewt)\
**Post date:** [April 5, 2014, 4:41am UTC](https://forums.unrealengine.com/t/pass-arguments-to-bluerint-construction-script/279660/1 "2014-04-05T04:41:45Z")

</div>

I want to spawn an object that will have a mesh that is determined from the class that spawned it. How do I pass the mesh (class, string, etc) to the construction script to set the static mesh?

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [April 5, 2014, 11:46am UTC](https://forums.unrealengine.com/t/pass-arguments-to-bluerint-construction-script/279660/2 "2014-04-05T11:46:03Z")

</div>

Steve Allison posted an answer on a similar question.

> **[Change projectile speed on spawn](https://forums.unrealengine.com/questions/14921/change-projectile-speed-on-spawn.html)**
>
> I’m trying to make a ‘bow and arrow’ type projectile. Where you charge the projectile speed before it’s spawned. Having issues trying to set the initial projectile speed after it’s been spawned.

If you follow this guide but tweak it to pass a mesh variable instead of a float variable, should work just fine. You’ll then just have to set it to your Mesh Compontent within the blueprint class. I have no problem providing an example if you need any assistance.

---

<div class="post-metadata">

**Author:** ![NeonNewt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NeonNewt](https://forums.unrealengine.com/u/NeonNewt)\
**Post date:** [April 6, 2014, 7:36am UTC](https://forums.unrealengine.com/t/pass-arguments-to-bluerint-construction-script/279660/3 "2014-04-06T07:36:36Z")

</div>

It looks like that will work! I am having an issue creating the mesh object to pass. I can’t seem to find the node required to load a mesh from a string or something similar.
