The problem is that the begin play and tick functions do not work in the blueprint inherited from the C++ class.
If blueprint is not inherited from a C++ class, then the functions work perfectly.
Thanks for trying to help! The problem was that the base C++ class, from which the APocketDrill class is inherited, did not contain a call to the Super method in BeginPlay.
Now all is clear.