BOOM Poteau

This commit is contained in:
MarcEricMartel
2022-10-11 21:24:46 -04:00
parent d31b299251
commit 92045620ec
2 changed files with 8 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ var gravity_vec = Vector3()
onready var hurtbox = $Hurtbox/HeadCollision
onready var hitbox = $HitBox/CollisionShape
onready var animation_player = $AnimationPlayer
onready var Explosion = $Explosion
func _ready():
animation_player.play("floating")
@@ -44,6 +45,7 @@ func get_slapped(slap_level, slap_kill, slap_vector):
func get_shot(hitboxOwner):
hitboxOwner.die()
Explosion.play()
die()
func die():