# Set Constrained Components not working in Construction script

**URL:** <https://forums.unrealengine.com/t/set-constrained-components-not-working-in-construction-script/325624>\
**Category:** World Creation\
**Tags:** unreal-engine, constraint, bug-report, question, Blueprint\
**Created:** [July 17, 2015, 1:11pm UTC](https://forums.unrealengine.com/t/set-constrained-components-not-working-in-construction-script/325624 "2015-07-17T13:11:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevFelix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DevFelix](https://forums.unrealengine.com/u/DevFelix)\
**Post date:** [July 17, 2015, 1:11pm UTC](https://forums.unrealengine.com/t/set-constrained-components-not-working-in-construction-script/325624/1 "2015-07-17T13:11:51Z")

</div>

Version 4.8.2

Calling Set Constrained Components in Construction script makes joint look correct while in editor, in my example you can see a red and line connecting two capsules, but when starting game connection disappears. If Set Constrained Components is called in BeginPlay instead it works while in game, but no connection is shown in editor. So it would seem that when game is started joint is destroyed for some reason. If called both in Construction Script and BeginPlay it exists both while editing and play, so configuration of joint should not be problem.

Link for simple test project [ConstraintError][1]

I’ve also experienced some issues with Set Constraint Reference Position, but I have nothing concrete there as of yet.

 ![50561-constructionscript.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/8/1482dfccdb32179414f71fc424a24ab252c3740b.png)

 ![50562-beginplay.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/1/39167a0b4acf07617703fba6c2d193ac9e85d7ad.png)

Editing  
50563-  
Play

 ![50564-play.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/e/63e0802e34c6dd666b54bb77f132dc83c2066e2d.png)

---

<div class="post-metadata">

**Author:** ![DevFelix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DevFelix](https://forums.unrealengine.com/u/DevFelix)\
**Post date:** [July 17, 2015, 1:14pm UTC](https://forums.unrealengine.com/t/set-constrained-components-not-working-in-construction-script/325624/2 "2015-07-17T13:14:49Z")

</div>

Forgot to mention, pair of capsules closer to screen has Set Constrained Components called in Construction script, while other pair has it called in BeginPlay.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 17, 2015, 1:33pm UTC](https://forums.unrealengine.com/t/set-constrained-components-not-working-in-construction-script/325624/3 "2015-07-17T13:33:57Z")

</div>

Hey DevFelix,

We’ve assigned a member of our team to look into this, and they’ll post here if they require any further information. Thanks for report!

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 17, 2015, 2:41pm UTC](https://forums.unrealengine.com/t/set-constrained-components-not-working-in-construction-script/325624/4 "2015-07-17T14:41:59Z")

</div>

Hi DevFelix,

Thank you for report. This is a known issue that was originally reported [here](https://answers.unrealengine.com/questions/160479/blueprint-set-constrained-components-failing.html). It is logged as JIRA UE-7878 and it is still being investigated by our developers.

current workaround is to set Component Names manually.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![DevFelix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DevFelix](https://forums.unrealengine.com/u/DevFelix)\
**Post date:** [July 17, 2015, 8:16pm UTC](https://forums.unrealengine.com/t/set-constrained-components-not-working-in-construction-script/325624/5 "2015-07-17T20:16:07Z")

</div>

Ah, managed to miss that post for some reason. Setting names manually in Add Physics Constraint Component Call doesn’t work if you have a dynamic amount of constraints and components to constrain, or am I missing something? Anyhow, linking things in BeginPlay works for now. Managed to track down another issue I was having but I’ll create a new post for that.

---

<div class="post-metadata">

**Author:** ![Nicat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nicat](https://forums.unrealengine.com/u/Nicat)\
**Post date:** [August 30, 2015, 8:35pm UTC](https://forums.unrealengine.com/t/set-constrained-components-not-working-in-construction-script/325624/6 "2015-08-30T20:35:23Z")

</div>

Hey there devs. Hope you haven’t forgotten about this issue. Because I can’t see it in known issues list of any version other than 4.7 you have linked. Hope it gets fixed soon. Just loving UE4(Epic) and don’t want to see any issues 😛  
Thanks DevFelix for hint about BeginPlay. I was going cazy about what to do.
