hello! i have a simple console system, where i have command to spawn some actors in front of my character, actors are stored in map variable, where string is key, and actor is value.
but yesterday i wanted to be able to destroy spawned actors from map, i maked a simple code in character’s bp where if i press ‘8’ on my keyboard all actors on my map from map variable will be destroyed, but it’s just not working. (it’s giving me error) What i am doing wrong?
1 Like
Is there a BP_Spawn_Item in the level?
No, it’s child actor from my console system (in this child actors i make my custom console commands, like activate fly, spawn something and etc.)
1 Like
Ok, if there’s not one in the level, then this
won’t work
I would try a print string to check something is getting returned here.
I Put it on level and it’s working! thank u!
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.