1
0

Initial commit

This commit is contained in:
FoxSpellCaster
2025-04-16 18:12:10 -04:00
commit 99bea1a1f0
53 changed files with 4804 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class_name InteractableObject
extends Node3D
@export var interact_prompt : String
@export var can_interact : bool = true
func _interact():
print("Override this function.")

View File

@@ -0,0 +1 @@
uid://mlp0il4nd2ge

View File

@@ -0,0 +1,16 @@
extends RayCast3D
@onready var interact_prompt_label : Label = get_node("InteractionPrompt")
func _process(delta):
var object = get_collider()
interact_prompt_label.text = ""
if object and object is InteractableObject:
if object.can_interact == false:
return
interact_prompt_label.text = "[E] " + object.interact_prompt
if Input.is_action_just_pressed("interact"):
object._interact()

View File

@@ -0,0 +1 @@
uid://0xopmg7fmfbj