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"

Switching between multiply levels using one button

Hi! First I want to write that I'm total begginer in blueprint scripting I made a 4 levels, It's just simply room but each level has different lighting conditions plus options in postpro volume, when I press "play" I want to have opportunity to switch between these levels For example when I press "m" I want to switch to level02 when I switch "m" again to level03, etc. I made something like this but it only fires up a level02 and stops when I press "m" again, please help! alt text

Product Version: UE 4.18
Tags:
blueprint.jpg (294.0 kB)
more ▼

asked Dec 03 '17 at 08:15 AM in Blueprint Scripting

avatar image

tr3buh
1 1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

The way you have it set up it cannot work. Each level is effectively restarting the counter back to the first index - this is why it only works to level 2. Also, level blueprints are specific to individual levels - I would put this in the game mode blueprint.

You're gonna want to use Savegame objects: https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/

increment an Int variable and store it into the savegame object. Use the incremented variable to control the level loop.

Hope this helps. Read the documentation - it'll make sense.

more ▼

answered Dec 03 '17 at 09:17 AM

avatar image

orbenet52
76 3 2 5

avatar image tr3buh Dec 04 '17 at 01:39 PM

Thanks, but Solution was simply as f...:) In each level blueprint In level 01: pressm->openlevel02 In level 02: pressm->openlevel03 In level 03: pressm->openlevel04 In level 04: pressm->openlevel01 And it works like charm

(comments are locked)
10|2000 characters needed characters left
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