When one of the events occurs, a Single agent recalculation is executed. In the editor, you can use the Additional "Event" block. At this recalculation, if an event has occurred, the block will return True, which can be used in the algorithm. If there are many events in one agent at once, a single recalculation is performed. A lot at once - write a hardcode for 5ms. That is, if several events occurred within 5ms, the recalculation call will be single.