I cannot access to another class function by using LineTracing

Oh I just noticed, UEnemyControl is a component, not an actor itself. So the best way would be to create a specific actor that has the UEnemyControl blueprint added to it already then do the HitActor cast to that actor’s class and then just grab the UEnemyControl from there.

The problem you are having is “HitActor” is an Actor while UEnemyControl is an ActorComponent.

You need to cast Actor to Actor then get the component of that actor then get the property.