# How to initialize a c++ property without BP overriding it?

**URL:** <https://forums.unrealengine.com/t/how-to-initialize-a-c-property-without-bp-overriding-it/1332369>\
**Category:** C++\
**Tags:** property, initialization, unreal-engine, CPP, question\
**Created:** [October 14, 2023, 2:28pm UTC](https://forums.unrealengine.com/t/how-to-initialize-a-c-property-without-bp-overriding-it/1332369 "2023-10-14T14:28:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![II\_ADN\_II](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ii_adn_ii/32/1194656_2.png) [@II\_ADN\_II](https://forums.unrealengine.com/u/II_ADN_II)\
**Post date:** [October 14, 2023, 2:28pm UTC](https://forums.unrealengine.com/t/how-to-initialize-a-c-property-without-bp-overriding-it/1332369/1 "2023-10-14T14:28:14Z")

</div>

I have problems as where to initialize a property value without it getting override by BP (before BeginPlay, so it gets overwritten by LoadSaveGame system)

```auto
int32 bullets = 10;
int32 bulletsLeft = 0;

```

I want to set bulletsLeft = bullets when component is created but I cant seem to get it to work with PostInitProperties and InitializeComponent, it always gets overwritten by the BP values.

---

<div class="post-metadata">

**Author:** ![II\_ADN\_II](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ii_adn_ii/32/1194656_2.png) [@II\_ADN\_II](https://forums.unrealengine.com/u/II_ADN_II)\
**Post date:** [October 18, 2023, 12:38pm UTC](https://forums.unrealengine.com/t/how-to-initialize-a-c-property-without-bp-overriding-it/1332369/2 "2023-10-18T12:38:29Z")

</div>

Anyone?
