TinyAdventure/ai/trees/pug.tres

41 lines
1.3 KiB
Plaintext
Raw Normal View History

[gd_resource type="BehaviorTree" load_steps=12 format=3 uid="uid://blccr23qjixws"]
2024-12-09 21:05:09 +01:00
[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"]
2024-12-09 21:05:09 +01:00
[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
2024-12-09 21:05:09 +01:00
[sub_resource type="BTAction" id="BTAction_qfrs5"]
2024-12-09 21:05:09 +01:00
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")]
2024-12-09 21:05:09 +01:00
[sub_resource type="BTAction" id="BTAction_l2eti"]
script = ExtResource("2_k36i0")
2024-12-09 21:05:09 +01:00
target_var = &"target"
[sub_resource type="BTRepeat" id="BTRepeat_dam0f"]
forever = true
children = [SubResource("BTAction_l2eti")]
2024-12-09 21:05:09 +01:00
[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")