x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Why me save game variable aren't in scope when I load it?

Hello UE4 community!

I have an issue with my save game and I've spent days to manage to solve it whithout any result. So I come to you for help. I want to use my save game to save score as well as some variables that I want to keep through levels.

I looked the Tappy Chickent project and tried to adapt it to my game. I managed to create my save game in my menu level. In the menu the player has to select which controller he will use, then I save it into a variable (I created an enum). I managed to reuse it in my others level. I do the same thing for all my variables BUT it looks like some variable aren't changed when I want.

Here is my save game blueprint: alt text

Then I try to load it in my game mode blueprint: alt text

But when I look at the game mode blueprint in debug mode, it says that my varaibles aren't in scope: alt text

What's even more strange is that for my "Controller" variable, it says that it's not in scope but i manage to use it and actually I have the right variable throughout levels. I really don't understand the problem.

I hope someone will have time to help me.

Have fun with Unreal!

Product Version: Not Selected
Tags:
savegame_bp.png (20.7 kB)
not_in_scope.png (183.8 kB)
more ▼

asked Oct 18 '14 at 08:33 AM in Blueprint Scripting

avatar image

Maxyx
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Because you are trying to use them publicly and they are private. See the closed eye next to the variable declarations?

more ▼

answered Nov 06 '14 at 12:42 AM

avatar image

RAVaught
699 44 28 68

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question