TinyAdventure/ai/trees/pug.tres

41 lines
1.3 KiB
Plaintext

[gd_resource type="BehaviorTree" load_steps=12 format=3 uid="uid://blccr23qjixws"]
[ext_resource type="Script" path="res://ai/tasks/find_target_by_name.gd" id="1_v4edy"]
[ext_resource type="Script" path="res://ai/tasks/navigate_to_location.gd" id="2_k36i0"]
[sub_resource type="BlackboardPlan" id="BlackboardPlan_yg732"]
[sub_resource type="BTAction" id="BTAction_7a1kv"]
script = ExtResource("1_v4edy")
target_name = "Player"
output_var = &"target"
[sub_resource type="BTWait" id="BTWait_8cgex"]
duration = 2.0
[sub_resource type="BTAction" id="BTAction_qfrs5"]
script = ExtResource("1_v4edy")
target_name = "Bone"
output_var = &"target"
[sub_resource type="BTSequence" id="BTSequence_u84lc"]
children = [SubResource("BTAction_7a1kv"), SubResource("BTWait_8cgex"), SubResource("BTAction_qfrs5")]
[sub_resource type="BTAction" id="BTAction_l2eti"]
script = ExtResource("2_k36i0")
target_var = &"target"
[sub_resource type="BTRepeat" id="BTRepeat_dam0f"]
forever = true
children = [SubResource("BTAction_l2eti")]
[sub_resource type="BTParallel" id="BTParallel_l5msj"]
children = [SubResource("BTSequence_u84lc"), SubResource("BTRepeat_dam0f")]
[sub_resource type="BTSequence" id="BTSequence_77owj"]
children = [SubResource("BTParallel_l5msj")]
[resource]
blackboard_plan = SubResource("BlackboardPlan_yg732")
root_task = SubResource("BTSequence_77owj")