Blueprint to C++

How Can i convert this blueprint code to C++?
Give Weapon is a custom event

How Can i convert this blueprint code to C++?

Hello! You can use SpawnActor methods of UWorld class (UWorld | Unreal Engine Documentation)