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/BallBarrel.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'godot/scenes/environment/BallBarrel.gd') diff --git a/godot/scenes/environment/BallBarrel.gd b/godot/scenes/environment/BallBarrel.gd index 80b721e..6ad3a22 100644 --- a/godot/scenes/environment/BallBarrel.gd +++ b/godot/scenes/environment/BallBarrel.gd @@ -3,6 +3,9 @@ extends RigidBody const balls_max = 100 onready var balls_left = balls_max +func _ready(): + add_collision_exception_with(owner) + func use_generic(player: NetChar) -> void: if balls_left > 0 and player.inventory["cannonball"] < player.inventory_caps["cannonball"]: player.inventory["cannonball"] += 1 -- cgit v1.2.3