[gd_resource type="BehaviorTree" load_steps=11 format=3 uid="uid://b6heun7ylvwy4"] [ext_resource type="Script" path="res://ai/tasks/find_path.gd" id="1_pfq3b"] [ext_resource type="Script" path="res://ai/tasks/find_path_waypoints.gd" id="2_x0idg"] [ext_resource type="Script" path="res://ai/tasks/navigate_to_location.gd" id="3_2kgtd"] [sub_resource type="BlackboardPlan" id="BlackboardPlan_wsfim"] var/patrol_path/name = &"patrol_path" var/patrol_path/type = 22 var/patrol_path/value = NodePath("") var/patrol_path/hint = 0 var/patrol_path/hint_string = "" var/path_waypoint_locations/name = &"path_waypoint_locations" var/path_waypoint_locations/type = 36 var/path_waypoint_locations/value = PackedVector3Array() var/path_waypoint_locations/hint = 0 var/path_waypoint_locations/hint_string = "" var/target_location/name = &"target_location" var/target_location/type = 9 var/target_location/value = Vector3(0, 0, 0) var/target_location/hint = 0 var/target_location/hint_string = "" [sub_resource type="BTAction" id="BTAction_s1nqu"] script = ExtResource("1_pfq3b") path_name = "" navigation_path_var = &"navigation_path" [sub_resource type="BTAction" id="BTAction_mteww"] script = ExtResource("2_x0idg") navigation_path_var = &"navigation_path" [sub_resource type="BTAction" id="BTAction_lsv7d"] script = ExtResource("3_2kgtd") target_var = &"target_location" distance = 1.0 [sub_resource type="BTForEach" id="BTForEach_3401s"] array_var = &"path_waypoint_locations" save_var = &"target_location" children = [SubResource("BTAction_lsv7d")] [sub_resource type="BTRepeat" id="BTRepeat_jgq6n"] forever = true children = [SubResource("BTForEach_3401s")] [sub_resource type="BTSequence" id="BTSequence_trxp5"] children = [SubResource("BTAction_s1nqu"), SubResource("BTAction_mteww"), SubResource("BTRepeat_jgq6n")] [resource] blackboard_plan = SubResource("BlackboardPlan_wsfim") root_task = SubResource("BTSequence_trxp5")