diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-10-07 15:49:57 -0400 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-10-07 15:49:57 -0400 |
| commit | 7dbec964a375598d454e04719576eb6c469a5d7b (patch) | |
| tree | fa819e5e843ecdd88375ad1806ab43358b1ea670 /godot/scenes/ballistics | |
| parent | 62c33688cf2f48d7669790a89e3d1cdec16798be (diff) | |
ai work
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") |
