# Blueprint: Get Component Relative Location Always Returns (0,0,0)

**URL:** <https://forums.unrealengine.com/t/blueprint-get-component-relative-location-always-returns-0-0-0/367553>\
**Category:** Blueprint\
**Tags:** bug, unreal-engine, construction-script, Components, question\
**Created:** [August 18, 2016, 10:53pm UTC](https://forums.unrealengine.com/t/blueprint-get-component-relative-location-always-returns-0-0-0/367553 "2016-08-18T22:53:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rujuro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rujuro](https://forums.unrealengine.com/u/rujuro)\
**Post date:** [August 18, 2016, 10:53pm UTC](https://forums.unrealengine.com/t/blueprint-get-component-relative-location-always-returns-0-0-0/367553/1 "2016-08-18T22:53:00Z")

</div>

In my construction script I have a component that I wish to get the relative location of to drive some other construction behavior. The issue is that no matter where I move this child component in the editor, when I query the relative location (via “get relative transform” or “Get Relative Location” the value that is returned is (0,0,0).

![103468-bp1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/3/c33030375d6b3b459a3c64122b11811301e95629.png)

![103469-bp2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/5/765703ebac94f0ee78dcb51f5fc7adff09835b9a.png)

![103470-bp3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/a/8eae977d2c75f9bf56f02f9b9e2393118bed8301.png)

This only changes if I change the initial location in the Blueprint “Viewport” tab, at which point it always returns the new initial relative location, but ignores any changes that I make in the editor to the placed instance. Does anyone know why this would be? Getting the world location of the component exhibits the same problem, with it just returning the parent actor’s location, no matter how I move the component.

I am tearing my hair out on this, I feel there is something basic that I must be missing. Thanks!

---

<div class="post-metadata">

**Author:** ![VictorBurgos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorburgos/32/1008648_2.png) [@VictorBurgos](https://forums.unrealengine.com/u/VictorBurgos)\
**Post date:** [August 19, 2016, 3:23am UTC](https://forums.unrealengine.com/t/blueprint-get-component-relative-location-always-returns-0-0-0/367553/2 "2016-08-19T03:23:15Z")

</div>

Answering your question live: [Twitch](https://www.twitch.tv/victorburgos_)

Actually, found out that it is a bug and in the works to getting fixed: [Unreal Engine Issues and Bug Tracker (UE-21838)](https://issues.unrealengine.com/issue/UE-21838)

---

<div class="post-metadata">

**Author:** ![rujuro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rujuro](https://forums.unrealengine.com/u/rujuro)\
**Post date:** [August 19, 2016, 4:44am UTC](https://forums.unrealengine.com/t/blueprint-get-component-relative-location-always-returns-0-0-0/367553/3 "2016-08-19T04:44:52Z")

</div>

Thanks Victor, so looks like it has been a bug for about a year now? Shocked that something like this (basic functionality) has gone unaddressed since 4.9?! How is that possible?

Thanks for taking a look, sorry the question was confusing at first. The use case, since you were wondering, is to be able to use the component as a marker for the automated placement of instanced meshes along a vector (rather than having to do it numerically)

---

<div class="post-metadata">

**Author:** ![klh360](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@klh360](https://forums.unrealengine.com/u/klh360)\
**Post date:** [November 30, 2016, 1:54pm UTC](https://forums.unrealengine.com/t/blueprint-get-component-relative-location-always-returns-0-0-0/367553/4 "2016-11-30T13:54:45Z")

</div>

Any progress on this? This is really kind of screwing me over right now.

Is there any workaround?

---

<div class="post-metadata">

**Author:** ![PixelsDesign](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PixelsDesign](https://forums.unrealengine.com/u/PixelsDesign)\
**Post date:** [January 3, 2017, 4:04pm UTC](https://forums.unrealengine.com/t/blueprint-get-component-relative-location-always-returns-0-0-0/367553/5 "2017-01-03T16:04:19Z")

</div>

I have the same problem but i can solve it just like this:

- Break hit result (if you have one)
- Get the hit location
