Check if actor is no longer relevant

Hi,

I’m making a multiplayer game with patrolling enemies however because the movement is getting replicated when the actor is no longer relevant it keeps running in that direction. Is there a event that triggers when the actor is no longer being replicated? So i can stop if from moving when it is no longer relevant. Or is there a way to check if the actor is no longer being replicated? Cause for bandwidth saving I use the net culling distance.

Just found a solution to doing this, in the tick of that character only on the client the character gets hidden when it goes out of the range of net culling distance. This is done using the length squared of the substraction of the player location and the AI character location.