Does anyone know how to add a trigger volume in c++

I watch a tutorial on YT about trigger volumes in c++ but it was coded in an early version or unreal 4.0.2, Since the recent updates (4.5) a lot of code has been changed so the tutorial has been out-dated.

Could someone please give me some sort of updated tutorial on how to create trigger volumes in c++. Thanks!

You just use shape component, for example UBoxComponent and then watch for overlap events, i write down how to add UBoxComponent to actor here:

there also other shape component

You might as well just use ATriggerVolume you can spawn it like any other actor ()->SpawnActor(ATriggerVolume::StaticClass());