Well off the top of my head the first problem is that you’re only doing an execute, you’re not actually receiving any ticks so it won’t pick up on those things except if it is in the light the very instant it starts executing. What you want is a service to check for light instead which begins with EventReceiveTick.
And what I’d do with event ticks is something like:
Provided the cone of light is an actor. You of course connect the true pin of the branch to the rest of the code you wish to execute if it is not in the light. The == condition on the branch in the top event would be equal to the light cone actor. You can also detect where it is and move in the opposite direction, the randoms are just to illustrate.
