Files
Brachistochrone/Scenes/Scripts/vendor_food.gd
T
scorpion21211-cmd 72ca74c67f Initial commit
2026-10-03 23:29:41 -04:00

10 lines
281 B
GDScript

extends StaticBody3D
func on_interact(player: Node) -> void:
var menu = get_node_or_null("/root/Node3D/VendorUI/VendorMenu")
if menu and menu.has_method("open_menu"):
menu.open_menu(player)
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
else:
print("Vendor menu not found")