Im seekeng a way to check, have some node a custom function.
I have area2d bullet, that flys forward. when it face Enemy or Player it calls a function "TakeDamage( damage )" and sets a damage amount. problems starts when it face wall or any other environment, because it doesnt have function "TakeDamage".
I want to modify bullet script to check have faced object "Take_Damage" function or it doent, and only if it have, then call it.
But i dont know how to check it.
Maybe someone knows how to solve this problem?