# Scaling an object based on the players position

**URL:** <https://forums.unrealengine.com/t/scaling-an-object-based-on-the-players-position/15297>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [November 14, 2014, 8:26pm UTC](https://forums.unrealengine.com/t/scaling-an-object-based-on-the-players-position/15297 "2014-11-14T20:26:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Korrupt\_One](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Korrupt\_One](https://forums.unrealengine.com/u/The_Korrupt_One)\
**Post date:** [November 14, 2014, 8:26pm UTC](https://forums.unrealengine.com/t/scaling-an-object-based-on-the-players-position/15297/1 "2014-11-14T20:26:32Z")

</div>

Hi  
I need some help with a blueprint I’ve been working on.

[![](https://i.imgur.com/eiQhFZZ.jpg) ](https://i.imgur.com/eiQhFZZ.jpg)

This is what I’m trying to achieve, if the player is outside A the objects scale is 0, Inside of B the scale is 1 and I want to lerp between the two dependant on the players location between A and B. The best I’ve been able to do is use a timeline to lerp between between the two if the player gets close and reverse it as they move away. Also there appears to be no collision on the object. and I can’t figure out why.

The blueprint so far

[![](https://i.imgur.com/oUTXgiA.jpg) ](https://i.imgur.com/oUTXgiA.jpg)

Any help anyone can give would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![Mhousse1247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mhousse1247](https://forums.unrealengine.com/u/Mhousse1247)\
**Post date:** [November 14, 2014, 9:23pm UTC](https://forums.unrealengine.com/t/scaling-an-object-based-on-the-players-position/15297/2 "2014-11-14T21:23:53Z")

</div>

hi  
i don’t see any mistake in your bp , i think you should check the distance or your timeline

---

<div class="post-metadata">

**Author:** ![The\_Korrupt\_One](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Korrupt\_One](https://forums.unrealengine.com/u/The_Korrupt_One)\
**Post date:** [November 15, 2014, 12:34am UTC](https://forums.unrealengine.com/t/scaling-an-object-based-on-the-players-position/15297/4 "2014-11-15T00:34:55Z")

</div>

I got it working as I wanted. Didn’t have to use a timeline just a bit of maths. However I’m still not getting any collision on the objects at all.

Updated blueprint

[![](https://i.imgur.com/EYsKtfF.jpg) ](https://i.imgur.com/EYsKtfF.jpg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64be61eb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64be61eb](https://forums.unrealengine.com/u/anonymous_user_64be61eb)\
**Post date:** [January 20, 2016, 3:45pm UTC](https://forums.unrealengine.com/t/scaling-an-object-based-on-the-players-position/15297/5 "2016-01-20T15:45:11Z")

</div>

Sorry to add to this post but how would I save the object vectors when scaled after I picked it up and dropped it

---

<div class="post-metadata">

**Author:** ![Delta1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Delta1](https://forums.unrealengine.com/u/Delta1)\
**Post date:** [September 24, 2018, 2:50pm UTC](https://forums.unrealengine.com/t/scaling-an-object-based-on-the-players-position/15297/6 "2018-09-24T14:50:08Z")

</div>

Could the object be kept at the same position in space?
