I am trying to make it so that when a player picks up a certain amount of “stuff”, they are able to go to sleep. How would I make it so that once certain conditions are met, the player is able to sleep in a certain place. Once the screen fades to black, then load up a new level and start the player at a place in the new level. Sorry if this is too nonspecific or impossible :(. (Blueprints is what I’m using)
I think the question is a bit too non specific, but here’s a general answer for you. You set up your conditions in a blueprint (maybe the level blueprint?)…once those conditions are met, you set a bool property saying they’re met, then you set a trigger in the level (or blueprint or however you intend to allow the player to activate the event) and whenever the player is trying to activate that, you set a bool saying that…when both bools are true, trigger the ‘sleep event’. You fade to black using matinee and a director track or through post processing. Once it’s black, load the new level using the ‘load streaming level’ or 'open level…and set the location of the player’s pawn to the wherever the ‘waking up’ location is…hope this helps.