From aad319ddb5be108e9ca81d407bd90c843bae502d Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Wed, 14 Sep 2022 23:59:22 -0400 Subject: GUNBRIG HULL PROTOTYPE --- godot/scenes/ballistics/Rocket.gd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'godot/scenes/ballistics/Rocket.gd') diff --git a/godot/scenes/ballistics/Rocket.gd b/godot/scenes/ballistics/Rocket.gd index 374bfd9..de92d24 100644 --- a/godot/scenes/ballistics/Rocket.gd +++ b/godot/scenes/ballistics/Rocket.gd @@ -19,8 +19,7 @@ func _physics_process(delta): add_central_force(global_transform.basis.x*strength) life += delta else: - rpc("explode") - $RocketTrail.emitting = false + if is_network_master(): rpc("explode") remotesync func explode(): @@ -46,3 +45,6 @@ remotesync func explode(): func _on_collision(_body): rpc("explode") + +func _on_area_entry(area): + pass -- cgit v1.2.3