Yes but the function with the scanning must happen in a certain moment (on_f=scan) And the entity's event is checking in each moment and when the camera gets close it will perform the function.