Simplified behaviour trees.

main
Martin Felis 2024-12-28 16:36:17 +01:00
parent 6008876da4
commit 5f004b07e9
2 changed files with 4 additions and 12 deletions

View File

@ -1,4 +1,4 @@
[gd_resource type="BehaviorTree" load_steps=19 format=3 uid="uid://ci1dpjqvsq0ax"]
[gd_resource type="BehaviorTree" load_steps=18 format=3 uid="uid://ci1dpjqvsq0ax"]
[ext_resource type="Script" path="res://ai/tasks/find_target_by_name.gd" id="1_crjnn"]
[ext_resource type="Script" path="res://ai/tasks/get_target_location.gd" id="2_a4moq"]
@ -58,10 +58,6 @@ children = [SubResource("BTSequence_ytwco"), SubResource("BTSubtree_dnwew")]
[sub_resource type="BTSequence" id="BTSequence_yk8po"]
children = [SubResource("BTAction_rgjhs"), SubResource("BTAction_2cqtn"), SubResource("BTAction_rp83o"), SubResource("BTSelector_cu7cu")]
[sub_resource type="BTRepeat" id="BTRepeat_713a6"]
forever = true
children = [SubResource("BTSequence_yk8po")]
[resource]
blackboard_plan = SubResource("BlackboardPlan_rxiwf")
root_task = SubResource("BTRepeat_713a6")
root_task = SubResource("BTSequence_yk8po")

View File

@ -1,4 +1,4 @@
[gd_resource type="BehaviorTree" load_steps=6 format=3 uid="uid://blccr23qjixws"]
[gd_resource type="BehaviorTree" load_steps=5 format=3 uid="uid://blccr23qjixws"]
[ext_resource type="BehaviorTree" uid="uid://caxmpcyhpt6em" path="res://ai/trees/wander.tres" id="1_rsg0c"]
@ -10,10 +10,6 @@
subtree = ExtResource("1_rsg0c")
blackboard_plan = SubResource("BlackboardPlan_x4gxn")
[sub_resource type="BTRepeat" id="BTRepeat_i5p3p"]
forever = true
children = [SubResource("BTSubtree_krik0")]
[resource]
blackboard_plan = SubResource("BlackboardPlan_yg732")
root_task = SubResource("BTRepeat_i5p3p")
root_task = SubResource("BTSubtree_krik0")