This commit is contained in:
Gerard Gascón 2025-04-24 17:23:34 +02:00
commit b99855351d
434 changed files with 50357 additions and 0 deletions

23
scripts/npc/npc.gd Normal file
View file

@ -0,0 +1,23 @@
extends CharacterBody3D
@export var text: Resource
var moving: bool
func animate_move():
$Model/AnimationPlayer.play("walk")
func animate_idle():
$Model/AnimationPlayer.play("idle")
# Dummy function to avoid having to distinct npc from pickup
func pointing(point: bool): pass
func destroy(): pass
func get_text() -> Resource:
if moving:
return null
else:
return text
func is_photo() -> bool:
return false