How can i copy a Acotr by coding?

I have an actor in scene,now i want to create a duplicar by coding with c++,what function can be used?thank you

In 3rd argument of SpawnActor function which is FActorSpawnParameters there is Template varable, if i’m not mistaken all properties states gonna be copy in it… maybe except transient properties