godot4-port
Jan 2020-09-17 23:09:28 +02:00
parent 54221054eb
commit 8616c8b431
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ func _ready():
#func _process(delta):
# pass
func shoot():
remote func shoot():
var casing_instance = casing.instance()
casing_instance.global_transform = find_node("Ejector").global_transform

View File

@ -116,7 +116,9 @@ func _physics_process(delta):
master func on_hit():
health -= 30
print(health)
if health <= 0:
rpc("kill")
master func kill():
health = 0