Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
extends StaticBody3D
|
||||
|
||||
@export var item_name: String = "Plasma Cutter (Damaged)"
|
||||
|
||||
func on_interact(player: Node) -> void:
|
||||
if player.has_method("add_item"):
|
||||
player.add_item(item_name)
|
||||
print("Picked up: ", item_name)
|
||||
queue_free()
|
||||
Reference in New Issue
Block a user