Spawn class

Good day, i did this _weaponInRHand = item, where _weaponInRHand and item are AActor, how can i spawn _weaponInRHand this object after destroying item?

thank you, GetClass() solved my problem, i have custom weapon class, so i converted _weaponInRHand to my custom class and then i did GetClass() in SpawnClass and it works :))

You can try remember class of item by simply calling item->GetClass() then use this class for spawning.

It would be nice if Pierdek could convert his comment to an anser, so that Historic can mark the questions as resolved. (: