Blueprint aside of construction script is executed only in game, but actor C++ code it self is executed in editor to, actor contains also code defining it’s behavior in editor, so you can do that only in C++. There is no select even on actor thru, you need to bind in to this delegate:
USelection::SelectionChangedEvent