Added Interact system with a raycast

This commit is contained in:
2024-06-03 23:39:36 -05:00
parent 1003bc186e
commit 9f76eacaad
5 changed files with 122 additions and 4 deletions

10
Assets/scripts/vape.gd Normal file
View File

@ -0,0 +1,10 @@
class_name Interactable
extends Node3D
@export var promt_message:String
@export var promt_key:String
func interact(player):
print("vape picked up")
get_parent().get_parent().queue_free()