43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
|
[gd_resource type="BehaviorTree" load_steps=13 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/look_at_target.gd" id="2_5373l"]
|
||
|
|
||
|
[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"]
|
||
|
|
||
|
[sub_resource type="BTAction" id="BTAction_xlccj"]
|
||
|
script = ExtResource("1_v4edy")
|
||
|
target_name = "Bone"
|
||
|
output_var = &"target"
|
||
|
|
||
|
[sub_resource type="BTWait" id="BTWait_8uvw7"]
|
||
|
duration = 3.0
|
||
|
|
||
|
[sub_resource type="BTSequence" id="BTSequence_u84lc"]
|
||
|
children = [SubResource("BTAction_7a1kv"), SubResource("BTWait_8cgex"), SubResource("BTAction_xlccj"), SubResource("BTWait_8uvw7")]
|
||
|
|
||
|
[sub_resource type="BTAction" id="BTAction_jhwy8"]
|
||
|
script = ExtResource("2_5373l")
|
||
|
target_var = &"target"
|
||
|
|
||
|
[sub_resource type="BTRepeat" id="BTRepeat_dam0f"]
|
||
|
forever = true
|
||
|
children = [SubResource("BTAction_jhwy8")]
|
||
|
|
||
|
[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")
|