Area2D nodes don't reset enter/exit callbacks when monitoring/monitorable/disabled properties are turned off?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lakshaya

If I have an area A, that encompasses another area B. I am monitoring the signals for areas entered in A.

So B enters A. My on_entry callback gets triggered.

Now A’s monitoring property is turned off, and then turned on again. B is still in the same place, but I want the _onentry callback to be retriggered in this case. It does not get triggered.

Area A is an attack, and B is an enemy hitbox.

so for some reason. this works for the ‘monitoring’ property, but not for ‘monitorable’

lakshaya | 2022-10-16 15:39

:bust_in_silhouette: Reply From: alexp

Wherever you turn the monitoring back on, call get_overlapping_areas() right afterward to get the info about what’s already there, and call the onentry callback manually