How do you load a level before playing

You click on it and then look in the details :slight_smile: ( after F8 )

Click off it and then on it again.

Oh, yeah I can see it, it is correct, I get the below error everytime though

Blueprint Runtime Error: “Accessed None trying to read property CallFunc_Array_Get_Item”. Node: SpawnActor BP First Person Character Graph: EventGraph Function: Execute Ubergraph WB Difficulty Blueprint: WB_Difficulty

Can you show the code, from the level load to the spawn etc?

Sure! BP posted by anonymous | blueprintUE | PasteBin For Unreal Engine

Wow, getting harder to read that blueprintUE format :slight_smile:

So you do need the delay, I think.

The idea is, if there’s nothing in the array, wait .25 secs and then do the getactorswithtag again. Until it has len 1, then carry on.

aHA! we are in the room, I can’t move, but I am in the room, now how to restore my character movement etc

1 Like

I would have thought this would run but it doesn’t seem to?

1 Like

If that’s in the player, it will run.

Yeah it’s in the player BP but my player doesn’t move

Could be a lot of stuff. If you put debug code on the movement nodes, do you see anything?

It’s the GameMode override, its set to None for the MainMenu which is fine but Level01 inherits None when it is loaded, but if I open the level directly it has the Override with the correct pawn class, anyway to disable inherit game mode or something similar?

There should be no pawn specified in any game mode. Because you are spawning it :slight_smile:

I’m not sure what is happening but it’s just a free camera now

1 Like

Which probably means no player. ( default pawn ).

You basically have to decide between two broad ways of doing things

  1. All games modes specify no pawn. You always spawn the player when the level has loaded and possess.

  2. Also all game modes have no pawn. You have the player in the persistent level, and just move them around when the level has loaded.

You can’t mix and match these.

I think I like the 1st option best, seems the cleanest way, so how do I fix it

Main Menu has no Game Mode override
Level01Map has no Game Mode override

and this is Project Settings

Yeah, not sure :slight_smile:

I can’t tell what you have going on.

Maybe go back over your steps and check things?

This should be empty - always

That’s why it won’t work, you have two players. One coming from the game mode, and one you’re spawning.

Okay so I updated that to be None

But now I don’t possess the character, I run it, and can see he is in the world along with the player start, I just haven’t possesed him –

This was In Pawn link missing so now I possess him but again, I can’t move
image

1 Like