This commit is contained in:
2025-01-28 14:17:29 +08:00
parent a43811fe77
commit 9640283964
22 changed files with 512 additions and 10 deletions
+11
View File
@@ -0,0 +1,11 @@
class_name GrabAction extends ActionLeaf
func tick(actor: Node, blackboard: Blackboard) -> int:
var grab_position = blackboard.get_value("grab_position")
if not grab_position:
return FAILURE
if actor.grab_item(grab_position):
return SUCCESS
return FAILURE