summaryrefslogtreecommitdiff
path: root/scripts/boats/Gunboat.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/boats/Gunboat.gd')
-rw-r--r--scripts/boats/Gunboat.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/boats/Gunboat.gd b/scripts/boats/Gunboat.gd
index 1e8dd49..6f4f807 100644
--- a/scripts/boats/Gunboat.gd
+++ b/scripts/boats/Gunboat.gd
@@ -85,10 +85,13 @@ func direction_input(fwd,bwd,left,right,_left,_right):
rudder = left - right
mainsheet = _left - _right
-func damage(amount, type, shooter, extra = ""):
+remotesync func damage(amount, _type, shooter, extra = ""):
health -= amount
print(health)
+remotesync func net_apply_impulse(impulse_v):
+ apply_central_impulse(impulse_v)
+
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
$Mast/Sail.scale.y = sail_out