# Read component properties in Construction Script?

**URL:** <https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 29, 2019, 9:18pm UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760 "2019-10-29T21:18:38Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![danamaloma](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danamaloma/32/1167197_2.png) [@danamaloma](https://forums.unrealengine.com/u/danamaloma)\
**Post date:** [April 23, 2026, 1:44am UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/8 "2026-04-23T01:44:41Z")

</div>

> [@Ren\_D](#):
>
> 1. I created a new component containing a variable.
> 2. Created a new blueprint.
> 3. Added a component to my blueprint.
> 4. My blueprint containing my component is placed on the scene.
> 5. On the stage, I changed the values of the variable, in the component inside the bluetooth.
> 6. In blueprint on the Construction Script, I read the value of the variable from the component.
> 
> **I expect to get the value of the variable entered on the scene (_MyVar=10_)  
> I get the default value. (_MyVar=0_)**
> 
> Tell me how to fix this problem?

### 💡 Recommended approach (used in many games)

Instead of relying on blocking collision, use a **Trigger Volume (Box/Sphere Overlap)** and handle the behavior manually:

**1. Detect entry into boundary**

- Place a larger invisible volume where the “soft wall” starts.

- Use `OnComponentBeginOverlap` to detect when the player enters it.

**2. Gradually reduce player control**

- As the player gets closer to the edge, scale down their input or velocity.

- For example:

**3. Apply opposite force (rubber band)**

- When inside the volume, apply a force or movement offset back toward the center:

**4. Release behavior**

- When player stops pushing, the force naturally pulls them back → gives that elastic feel

* * *

### 🧠 Alternative (simpler Blueprint logic)

A very common pattern suggested by UE devs:

- First phase: **slow player to a stop (~1 second)**

- Second phase: **apply increasing force pushing them back**

This creates a smooth 2–3 second interaction instead of a hard stop ([Epic Developer Community Forums](https://forums.unrealengine.com/t/gracefully-move-the-player-back-from-an-invisible-wall-blocking-volume/644120?utm_source=chatgpt.com "Gracefully move the player back from an invisible wall / blocking volume? - Blueprint - Epic Developer Community Forums"))

* * *

### ⚙ Implementation tips (important)

- ❌ Avoid pure blocking volumes → causes your “stuck” glitch

- ✅ Use **overlap + manual velocity control**

- ✅ Modify:

- ✅ Use a **falloff curve** (Float Curve asset) for smoothness

- ✅ Clamp max pushback force so it doesn’t feel jerky

* * *

### 🎮 Bonus: “Star Fox feel”

For that classic Star Fox boundary:

- Use a **camera-centered box**

- Always push player toward screen center (not world center)

- Add slight camera shake or tilt when pushing → sells the effect

* * *

### 🧩 TL;DR

- No built-in UE5 feature for this

- Don’t use hard collision

- Use:  
**Overlap Volume + distance-based slowdown + reverse force**

- Think of it as a **soft constraint field** , not a wall

---

_[View the full topic](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760)._
