drop on death
This commit is contained in:
parent
3e64a00e43
commit
27f1e0c0aa
5 changed files with 36 additions and 14 deletions
9
scripts/weapon_system/bomb/bomb_dropper.gd
Normal file
9
scripts/weapon_system/bomb/bomb_dropper.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
extends Node
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if get_parent().player == null: return
|
||||
get_parent().player.died.connect(on_death)
|
||||
|
||||
func on_death() -> void:
|
||||
get_parent().system.drop_slot("bomb")
|
||||
Loading…
Add table
Add a link
Reference in a new issue