diff options
Diffstat (limited to 'Scripts/Level Specific/0MachetteGive.gd')
-rw-r--r-- | Scripts/Level Specific/0MachetteGive.gd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Scripts/Level Specific/0MachetteGive.gd b/Scripts/Level Specific/0MachetteGive.gd new file mode 100644 index 0000000..9754741 --- /dev/null +++ b/Scripts/Level Specific/0MachetteGive.gd @@ -0,0 +1,8 @@ +extends Node2D + + +func _on_area_2d_body_entered(body:Node2D) -> void: + if body is Entity: + if body.is_player: + body.get_node("PlayerInventory").give_machette() + queue_free() |