diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-09-14 23:59:22 -0400 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-09-14 23:59:22 -0400 |
| commit | aad319ddb5be108e9ca81d407bd90c843bae502d (patch) | |
| tree | b67c7bf158a65830207e87cbff975375b2f6838b /godot/scenes/ballistics | |
| parent | b5e9597ae82b4de04f77426ebdad9e1e2af15782 (diff) | |
GUNBRIG HULL PROTOTYPE
Diffstat (limited to 'godot/scenes/ballistics')
| -rw-r--r-- | godot/scenes/ballistics/Rocket.gd | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
