When I say map, I do not mean a playable area in a game. I mean the map data-type.
I’ve just started using unreal, so I apologize if this is a silly question but:
My goal is to create a large list of enemies, which can be referenced by my Game instance object. I created a “Master_Enemy_Template” Actor with all of the variables I want on an enemy, and then created a “Sample_Enemy” actor that is a child of that blueprint class. Ideally, I would create a large amount of enemies this way, each with custom variables and such.
In my Game Instance, I created a Variable named “Enemies”
This is a Map with the “Name” Data type as the key, and an “Actor” data type as the value.
I would like to be able to load up every enemy I make into this Map, so I can retrieve data from every enemy whenever I want. I do not have the sample enemy instanced into my level, and thus cannot reference it in my map variable. Is there some way for me to be able to reference the data of every enemy, without loading every enemy into my level? Or, if you recommend a much easier/more efficient way of doing what I’m trying to do, that would be great too.
TL/DR: I want to reference a large amount of actors and their unique variables across my entire game without loading each one into every level I create. How?
Thanks.