How to do an OnClicked event on an actor in C++

A good explanation of this topic with code examples is here: