Merge branch 'main' of https://github.com/MarcEricMartel/FirstPersonSlapper
This commit is contained in:
@@ -14,6 +14,7 @@ onready var hitbox = $HitBox/CollisionShape
|
||||
onready var particles = $CPUParticles
|
||||
onready var death_timer = $DeathTimer
|
||||
onready var mesh = $MeshInstance
|
||||
onready var Explosion = $Explosion
|
||||
|
||||
func _ready():
|
||||
var rng = RandomNumberGenerator.new()
|
||||
@@ -42,6 +43,7 @@ func get_slapped(slap_level, slap_kill, slap_vector):
|
||||
|
||||
func get_shot(hitboxOwner):
|
||||
hitboxOwner.die()
|
||||
Explosion.play()
|
||||
die()
|
||||
|
||||
func die():
|
||||
|
||||
Reference in New Issue
Block a user