This commit is contained in:
akshay 2022-08-16 01:13:13 -04:00
commit 69c3a4e9ea
3 changed files with 524 additions and 25 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -69,6 +69,8 @@ func modify_inventory(item_name, item_amount):
func _unhandled_input(event):
if event.is_action_pressed("action"):
$DungMan/AnimationTree["parameters/Activate/active"] = true
yield(get_tree().create_timer(0.2), "timeout")
for area in $"%TriggerVolume".get_overlapping_areas():
if try_trigger_interact(area):
break
@ -82,6 +84,7 @@ func try_trigger_interact(area):
return false
var result = owner.on_player_interact(self)
if not result:
print("player failed to interacted with ", owner)
return