From d34c96aa69d2aee1aaa3bb12366b36ff22d674c0 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Thu, 20 Oct 2022 13:54:06 -0400 Subject: network work work work --- godot/scenes/environment/Water.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'godot/scenes/environment/Water.gd') diff --git a/godot/scenes/environment/Water.gd b/godot/scenes/environment/Water.gd index 6fd4dc2..54bb237 100644 --- a/godot/scenes/environment/Water.gd +++ b/godot/scenes/environment/Water.gd @@ -9,5 +9,9 @@ func create_splash(pos, size): func _on_WaterArea_body_entered(body): if body.has_method("extinguish"): body.extinguish() + if body.has_method("enter_water"): body.enter_water() #print(body.get_aabb().get_area()) create_splash(body.global_transform.origin, 1.5) + +func _on_WaterArea_body_exited(body): + if body.has_method("exit_water"): body.exit_water() -- cgit v1.2.3