How to change variable of one specific actor when there are multiple of them in the game?

Hi there,

If you have multiple soul generators, which one having independent soul counts, you want to create a variable type “map” and use a “save-load level state” logic in order to track all soul generators in your game. Each soul generator needs to have a unique ID, and it is an advanced workflow, but it will work if done correctly.

This is the official tutorial from Epic Games that covers save-load level state. It also comes with a sample project for download. Then, you still need to become familiar with variables type “map”, which require more logic to update/retrieve information.

Blueprint Runtime Saving and Loading: Introduction - Blueprint Runtime Saving and Loading (epicgames.com)

This is the “Map Variable” tutorial from the same instructor of the previous video.
WTF Is? Variable: Map in Unreal Engine 4 ( UE4 ) - YouTube

1 Like