0 votes

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.

Godot version 4.0 beta
in Engine by (29 points)

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

1 Answer

0 votes

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

by (187 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.