Save Game, load the level, Load the Game - tell everyone what happened in the previous level.
My situation is I have an event let say on level1 and I want to notify an actor on level2, that the event is happened. I’m curious is there a built in way to notify an actor asynchronously? If no what is the best practice to achive this?
E.g. you can create a Map (the type of array) in your save game, with the event names as keys and bools as values. Whenever an event happens in one level, you set the event’s bool to true and save it. Whenever you load any other level, load the save file and check the bools of the events that this level is interested in.
Or it can be a simple array of bools, if you can keep track of the indices that correspond to this or that event. A Map will be just a bit easier to work with, if the event names make sense.
How do you save basically a “function call”? You create a centralized handler for it? Since your actor on level1 what fired the event, doesnt exists anymore on level2. And I have like 20 different cross level event in mind so I would like to create some kind of generalized handler for it.