diff options
Diffstat (limited to 'godot/scenes/ballistics')
| -rw-r--r-- | godot/scenes/ballistics/Rocket.gd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/godot/scenes/ballistics/Rocket.gd b/godot/scenes/ballistics/Rocket.gd index e475f9b..c10b5b5 100644 --- a/godot/scenes/ballistics/Rocket.gd +++ b/godot/scenes/ballistics/Rocket.gd @@ -40,6 +40,7 @@ remotesync func explode(): for body in $BlastArea.get_overlapping_bodies(): if body.has_method("damage"): body.rpc("damage", 20, "EXPLOSIVE", [shooter_id, shooter], "using 'rocket'") + if body.has_method("net_apply_impulse"): body.rpc_id(body.get_network_master(), "net_apply_impulse", (1300*(body.global_transform.origin+Vector3(0,1,0) - global_transform.origin).normalized())) $AnimationPlayer.play("explode") |
