Figments-of-the-Night/scripts/npc/npc.gd
Gerard Gascón b99855351d init
2025-04-24 17:23:34 +02:00

23 lines
420 B
GDScript

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