Only having 1 instance of actor in level

Hey everyone!

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 :slight_smile:

Thanks and much appreciated,

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.