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"

Save GameMode variables in SaveGame class

Hey all,

I'm trying to save a bunch of boolean variables from my Game Mode in to my save game class but I can't find a sane way to do it. How do you do this?

These variables link to a UMG showing a bunch of unlocks within the game. Each variable essentially is activated once the player unlocks that particular thing.

Thanks!

Product Version: UE 4.13
Tags:
vari.png (32.1 kB)
more ▼

asked Jan 26 '17 at 06:18 PM in Blueprint Scripting

avatar image

infectedflinch
10 2 4 7

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

1 answer: sort voted first

What do you mean by "can't find a sane way"? What have you tried? What's not working?

In general, you:

more ▼

answered Jan 26 '17 at 07:08 PM

avatar image

CleanCut
2.1k 67 84 77

avatar image infectedflinch Jan 26 '17 at 08:12 PM

Hey CleanCut, I'm just saying I can't figure it out is all. I'm a bit of an idiot.

Would you be able to show an example of what you mean as an example, please? I know how to cast, I'm just wondering how you connect it to saving the game.

avatar image CleanCut Jan 26 '17 at 08:58 PM

alt text

avatar image infectedflinch Jan 26 '17 at 10:15 PM

Ah thank you! That really helps! Is the loading of the variables relatively the same? I'm having trouble with that too.

avatar image CleanCut Jan 26 '17 at 10:44 PM

Yep, just go backwards. That Save/Load page I linked to has examples. Don't forget to mark your issue resolved by clicking the checkmark up by this answer.

(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