How to make events in a game?

Howdy folks! I am making my first game in Unreal. It’s a little spooky horror game about a kid left home alone and he starts to hear noises and things.

I was wondering if there is a way to set up sequential events. Essentially; do one mission and then all the stuff for the second mission happens. For example he first needs to check the noise outside the window, then once he has figured out that it was a bird he THEN needs to go and lock all the doors. However when he locks the first door it locks but when he locks the second door then the first door becomes unlocked.

I have looked all over but I seem to only get tutorials on how to do things in sequencer for cinematics. Is there a way that I am missing?

Thanks so much :slight_smile:

I think this kind of thing would be a nightmare in the sequencer. Typically, you would do this with blueprints.

Hi Eothingas,

My advice to you is to take a look at the ‘Blueprint_Communication’ map in the Content Examples project.

General idea is that in your “BP_Door” Blueprint you’d have an ‘object reference variable’ (of type BP_Door) that you could then make editable and set it to the other door. (And call “Lock” custom event on specified door)

Hope that helps

1 Like