MassAI crosswalk

Hi, I need some help with MassAI and State Tree. I’m trying to create pedestrians who walk on sidewalks and cross the street when the light turns green. I’ve managed to get them to walk and stop at the crosswalk, waiting for a boolean value to change, which determines whether they can walk or not. The traffic lights are a custom Blueprint that changes the value periodically. I’d like to update the boolean in the State Tree for the agents standing near those lights. Could someone advise me on how I can do that?