Level variable is instance editable and is not empty.
And it works well, but when I’m trying to return to level where I already been, I’m getting that error:
“TravelFailure: ClientTravelFailure, Reason for Failure: ‘Failed to load package ‘/Game/TopDown/Maps/UEDPIE_0_ReceptionMap’’. Shutting down PIE.”
It’s not happening when I’m trying to travel in the different points in one level, only when I’m transfering level 1 → level 2 → level 1. Why is that happening? I can only think about reference errors (like I should keep reference to previous level, but I don’t know how it works).
You should use an array and store levels in that, Have you learned programming not just syntax? Like [0] is level 1 [1] is level 2 and use those to load the levels.
Yes, I learned it, but I don’t understand how to do this in ue and why I should do it? I created actor and set the target level:
Do you mean each level is unique even with object reference and when I’m going level 1 → level 2 → level 1, actually, I am going level 1 → level 2 → level 1 (copy)?
It takes much more time: I have 13 levels on 1 floor, every level has ~ 3 doors. 5 floors ~ 195 doors. So I wanted to do it with object reference where I can just select target level.
No, then you could use a simple script like levNumber += 1, which would make it easier to access it. I did this when I couldn’t use Unreal and used Godot Instead.
Then, I would have two numbers levNumberMajor, and levNumMinor, so level1_0, level1_1, level2_0, level3_0, level3_1, level_3_2… So you would just cycle through to and index them like level[1][0] = thatLevel,