Level transfering Variable

Hi, i know how to make a simple box trigger which makes the game load another level but i want to add list of levels to the trigger and then the game picks one of the levels at random so it looks like: load level1: level1A-Level1B-Level1C

Cheers

Hello R00dy,

I have created a simple setup that stores an array of Name variables, which are set by default to the names of your levels. Once I have this array, I get an element using the Random Integer in Range node, and then connect the output of that to the Open Level node.

Here is what it looks like:

The most important thing to remember here is that when you create your Name variables, that you ensure to set their default values to the names of your levels. For example, my variable was called Level1, but I also set the default value to Level1. If you do not do this, the variable will return none and this setup will not work.

Feel free to let me know if there are any further questions.

Have a great day