[gd_resource type="BehaviorTree" load_steps=24 format=3 uid="uid://ci4c0hulhunya"] [ext_resource type="Script" path="res://ai/tasks/find_target_by_name.gd" id="1_tnvhr"] [ext_resource type="Script" path="res://ai/tasks/get_target_location.gd" id="2_b5gty"] [ext_resource type="Script" path="res://ai/tasks/calc_distance_to_location.gd" id="3_uare1"] [ext_resource type="Script" path="res://ai/tasks/check_target_node_visible.gd" id="4_a08ij"] [ext_resource type="Script" path="res://ai/tasks/look_at_location.gd" id="5_gmkjn"] [ext_resource type="Script" path="res://ai/tasks/dash.gd" id="6_olvwy"] [sub_resource type="BlackboardPlan" id="BlackboardPlan_1scth"] [sub_resource type="BTAction" id="BTAction_djxii"] script = ExtResource("1_tnvhr") target_name = "Player" output_var = &"player_node" [sub_resource type="BTAction" id="BTAction_j2c2h"] script = ExtResource("2_b5gty") max_distance = 1.0 target_var = &"player_node" output_var = &"player_location" [sub_resource type="BTAction" id="BTAction_m57e1"] script = ExtResource("3_uare1") target_location_var = &"player_location" output_var = &"player_distance" [sub_resource type="BBVariant" id="BBVariant_qpc1d"] type = 3 saved_value = 3.0 resource_name = "3" [sub_resource type="BTCheckVar" id="BTCheckVar_tckkb"] variable = &"player_distance" check_type = 2 value = SubResource("BBVariant_qpc1d") [sub_resource type="BTAction" id="BTAction_nwvhw"] script = ExtResource("4_a08ij") target_node_var = &"player_node" [sub_resource type="BTAction" id="BTAction_jedr7"] script = ExtResource("5_gmkjn") target_location_var = &"player_location" [sub_resource type="BTWait" id="BTWait_ja5ae"] [sub_resource type="BBVariant" id="BBVariant_r47ls"] type = 1 saved_value = true resource_name = "true" [sub_resource type="BTSetAgentProperty" id="BTSetAgentProperty_vbi0y"] property = &"is_dash_active" value = SubResource("BBVariant_r47ls") [sub_resource type="BTAction" id="BTAction_j3hob"] script = ExtResource("6_olvwy") [sub_resource type="BTWait" id="BTWait_dxb8r"] [sub_resource type="BBVariant" id="BBVariant_dc6nt"] type = 1 saved_value = false resource_name = "false" [sub_resource type="BTSetAgentProperty" id="BTSetAgentProperty_4wskw"] property = &"is_dash_active" value = SubResource("BBVariant_dc6nt") [sub_resource type="BTSequence" id="BTSequence_j6m67"] custom_name = "Dash" children = [SubResource("BTWait_ja5ae"), SubResource("BTSetAgentProperty_vbi0y"), SubResource("BTAction_j3hob"), SubResource("BTWait_dxb8r"), SubResource("BTSetAgentProperty_4wskw")] [sub_resource type="BTSequence" id="BTSequence_dqp20"] custom_name = "AimAtPlayer" children = [SubResource("BTAction_djxii"), SubResource("BTAction_j2c2h"), SubResource("BTAction_m57e1"), SubResource("BTCheckVar_tckkb"), SubResource("BTAction_nwvhw"), SubResource("BTAction_jedr7"), SubResource("BTSequence_j6m67")] [resource] blackboard_plan = SubResource("BlackboardPlan_1scth") root_task = SubResource("BTSequence_dqp20")