# Save Game Boolean Not Working

**URL:** <https://forums.unrealengine.com/t/save-game-boolean-not-working/423957>\
**Category:** Blueprint\
**Tags:** save-game, unreal-engine, construction-script, editor, question, Blueprint\
**Created:** [April 30, 2018, 12:48pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957 "2018-04-30T12:48:49Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewdle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dewdle](https://forums.unrealengine.com/u/dewdle)\
**Post date:** [April 30, 2018, 12:48pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/1 "2018-04-30T12:48:49Z")

</div>

I’m struggling to save a boolean variable from a class of objects (Door 5).

Basically, I want to save whether or not the door is open, and then load that back up.

This is working in the game, but as soon as I reload, it won’t load the doors in the right state (open/closed).

This is the construction script of my object:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/7/a07f99a7300a62d2f37749e330ff502d915dea68.png)

This is my saving of the game (in first person character blueprint).

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/6/c2618337642e7265ee326b4b19265440dcaf39cc.jpeg)

This is my loading of the game (in first person character blueprint).

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/4/35428cd1e0421efabbad5ec5760601bcbc70b78d.png)

---

<div class="post-metadata">

**Author:** ![dewdle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dewdle](https://forums.unrealengine.com/u/dewdle)\
**Post date:** [April 30, 2018, 12:50pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/2 "2018-04-30T12:50:19Z")

</div>

Note: the game is successfully saving the player location/rotation, but not the doors open/close!!!

---

<div class="post-metadata">

**Author:** ![Velrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Velrin](https://forums.unrealengine.com/u/Velrin)\
**Post date:** [April 30, 2018, 1:02pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/3 "2018-04-30T13:02:31Z")

</div>

Hey Dewdle,

It looks like your images did not post correctly on the thread. Can you post them again?

---

<div class="post-metadata">

**Author:** ![dewdle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dewdle](https://forums.unrealengine.com/u/dewdle)\
**Post date:** [April 30, 2018, 1:03pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/4 "2018-04-30T13:03:42Z")

</div>

Maybe they’ll work as links?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/7/a07f99a7300a62d2f37749e330ff502d915dea68.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/6/c2618337642e7265ee326b4b19265440dcaf39cc.jpeg)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/4/35428cd1e0421efabbad5ec5760601bcbc70b78d.png)

---

<div class="post-metadata">

**Author:** ![goncasmage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goncasmage](https://forums.unrealengine.com/u/goncasmage)\
**Post date:** [April 30, 2018, 3:24pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/5 "2018-04-30T15:24:47Z")

</div>

SaveGames can’t save Actor References, and you’re trying to access an array of actors which is empty (which makes sense). You should instead save an array of booleans, and then apply that array in your third screenshot.

---

<div class="post-metadata">

**Author:** ![dewdle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dewdle](https://forums.unrealengine.com/u/dewdle)\
**Post date:** [May 1, 2018, 12:46am UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/6 "2018-05-01T00:46:02Z")

</div>

Any more detail on how to do that?

---

<div class="post-metadata">

**Author:** ![dewdle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dewdle](https://forums.unrealengine.com/u/dewdle)\
**Post date:** [May 1, 2018, 2:35am UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/7 "2018-05-01T02:35:40Z")

</div>

Having the same problem using an array?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/7/797907227eb711feccb46bf7b48a29d09c1f865c.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/5/08554159c6a9ddc8b955252acf015df68c144817.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/7/797907227eb711feccb46bf7b48a29d09c1f865c.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/5/08554159c6a9ddc8b955252acf015df68c144817.png)

---

<div class="post-metadata">

**Author:** ![goncasmage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goncasmage](https://forums.unrealengine.com/u/goncasmage)\
**Post date:** [May 1, 2018, 8:37am UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/8 "2018-05-01T08:37:40Z")

</div>

When you’re using the SetArrayElem node, you should actually be using the Add node. Because that way, you’re accessing indeces that don’t yet exist in the array. Try that.

---

<div class="post-metadata">

**Author:** ![dewdle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dewdle](https://forums.unrealengine.com/u/dewdle)\
**Post date:** [May 7, 2018, 11:28am UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/9 "2018-05-07T11:28:42Z")

</div>

I’m still having trouble saving Booleans. It seems all of the tutorials are for other variable types. Anyone else have tips?

---

<div class="post-metadata">

**Author:** ![goncasmage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goncasmage](https://forums.unrealengine.com/u/goncasmage)\
**Post date:** [May 7, 2018, 11:57am UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/10 "2018-05-07T11:57:08Z")

</div>

Can you show your current setup? Also try commenting on the questions instead of creating a new one 😉

---

<div class="post-metadata">

**Author:** ![dewdle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dewdle](https://forums.unrealengine.com/u/dewdle)\
**Post date:** [May 7, 2018, 11:18pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/11 "2018-05-07T23:18:07Z")

</div>

Sorry about that.

So I tried to save individual boolean variables, instead of an array, to see if that worked.

**In my level blueprint:**

I first get the actor (Fuse Box), and then get the variable from inside that actor (Usedlights). I then set the variable (Are Lights on Re Switch Box) in my Save Game actor, and save that to a slot.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/6/3f62ad3de99725d41d21fd79a30c1ae3abc93415.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/6/3f62ad3de99725d41d21fd79a30c1ae3abc93415.png)

When I load the variable, I get the variable (Are Lights on Re Switch Box) from my Save Game actor, and then use a branch to determine what happens if it is true.

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/d/1ad6816319ad6e6db16b4107bfe5df6e7ac7db45.png)

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/d/1ad6816319ad6e6db16b4107bfe5df6e7ac7db45.png)

**In my Save Game actor:**

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/5/1b50e930028beb6013e9d30bf65bea546f6e20ec.png)

---

<div class="post-metadata">

**Author:** ![goncasmage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goncasmage](https://forums.unrealengine.com/u/goncasmage)\
**Post date:** [May 8, 2018, 8:26am UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/12 "2018-05-08T08:26:50Z")

</div>

And that doesn’t work? Show me how you’re saving your boolean.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [May 30, 2022, 2:08pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/13 "2022-05-30T14:08:38Z")

</div>

Did anyone find out how to do this?

Im currently trying to save a boolean, As in setting kmh or mph in game settings and Every tutorial, every guide, every thread talks about variables but never booleans.  
No one is disccusing booleans and Ive been searching for what feels like weeks now.

---

<div class="post-metadata">

**Author:** ![Anthony\_Attwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Attwood](https://forums.unrealengine.com/u/Anthony_Attwood)\
**Post date:** [August 19, 2025, 7:53pm UTC](https://forums.unrealengine.com/t/save-game-boolean-not-working/423957/14 "2025-08-19T19:53:53Z")

</div>

I’m trying to do this too. Has anyone got an answer?
