Only having 1 instance of actor in level
I am making a portal system, the same premise as the game Portal and I would like to know how to only have one instance of (for example) 'Portal1' in the level at one time. As of right now whenever i spawn a new portal it does not override the previous. If anyone has any suggestions on how to do this that would be great :)
Thanks and much appreciated, Harry
asked Aug 27 '16 at 06:58 AM in Blueprint Scripting
You could store a reference to each of your open portals somewhere (in the player, or the gamestate probably). When a new portal is successfully created call destroy on the stored reference, then replace it with that of the new portal.
answered Aug 27 '16 at 08:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here