Spawn/Clone Actor in class on runtime

Hello there! :slight_smile: I’m currently trying to create a blueprint script for spawning and cloning of the actors from the class. Pretty much equivalent of Ctrl C/X and Ctrl V but with certain actors (either you copy or crop actor from the world, goes to “clipboard” and you can use it later). How can I reach this please?

I assume you mean during game play?

Then you’ll need know which actor / BP they have chosen, and be able to make a new one.

First part you could do with GetHitResultUnderCursor or a line trace.

Once you know what they want to copy, you can just make another one with SpawnActorFromClass.

Hi! yes, I’m currently trying to use LineTrace, but am stuck with this right now :confused:

Once you get it, nothing to it. Here’s a good vid: