[gd_resource type="BehaviorTree" load_steps=10 format=3 uid="uid://caxmpcyhpt6em"] [ext_resource type="Script" path="res://ai/tasks/find_nearby_random_location.gd" id="1_5wpmm"] [ext_resource type="Script" path="res://ai/tasks/look_at_location.gd" id="2_d6sgo"] [ext_resource type="Script" path="res://ai/tasks/navigate_to_location.gd" id="3_ch0o3"] [sub_resource type="BlackboardPlan" id="BlackboardPlan_yo8p7"] prefetch_nodepath_vars = false var/debug_npc_path/name = &"debug_npc_path" var/debug_npc_path/type = 22 var/debug_npc_path/value = NodePath("") var/debug_npc_path/hint = 0 var/debug_npc_path/hint_string = "" [sub_resource type="BTAction" id="BTAction_s4a8v"] script = ExtResource("1_5wpmm") radius = 3.0 output_var = &"target_location" navigatable_target = true stay_in_radius = true [sub_resource type="BTAction" id="BTAction_lschq"] script = ExtResource("2_d6sgo") target_location_var = &"target_location" [sub_resource type="BTAction" id="BTAction_onf00"] script = ExtResource("3_ch0o3") target_var = &"target_location" distance = 0.1 [sub_resource type="BTRandomWait" id="BTRandomWait_gert2"] max_duration = 3.0 [sub_resource type="BTSequence" id="BTSequence_o4qno"] children = [SubResource("BTAction_s4a8v"), SubResource("BTAction_lschq"), SubResource("BTAction_onf00"), SubResource("BTRandomWait_gert2")] [resource] blackboard_plan = SubResource("BlackboardPlan_yo8p7") root_task = SubResource("BTSequence_o4qno")