init
This commit is contained in:
commit
b99855351d
434 changed files with 50357 additions and 0 deletions
23
scripts/npc/npc.gd
Normal file
23
scripts/npc/npc.gd
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue