gun system + minigun
This commit is contained in:
parent
84415d5aca
commit
f73f093ae2
13 changed files with 84 additions and 24 deletions
|
|
@ -9,10 +9,11 @@ var health: int = 1:
|
|||
health = v
|
||||
if v == 0:
|
||||
queue_free()
|
||||
var damage := 10.
|
||||
|
||||
func _on_collision(node: Node3D):
|
||||
if node.has_method("hit"):
|
||||
if node.hit(self):
|
||||
if node.hit(self, damage):
|
||||
health -= 1
|
||||
|
||||
func _ready() -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue