TinyAdventure/ai/trees/wander.tres

37 lines
1.3 KiB
Plaintext

[gd_resource type="BehaviorTree" load_steps=11 format=3 uid="uid://caxmpcyhpt6em"]
[ext_resource type="Script" path="res://ai/tasks/find_nearby_random_location.gd" id="1_5wpmm"]
[ext_resource type="Script" path="res://ai/tasks/look_at_location.gd" id="2_d6sgo"]
[ext_resource type="Script" path="res://ai/tasks/navigate_to_location.gd" id="3_ch0o3"]
[sub_resource type="BlackboardPlan" id="BlackboardPlan_yo8p7"]
[sub_resource type="BTAction" id="BTAction_s4a8v"]
script = ExtResource("1_5wpmm")
radius = 1.0
output_var = &"target_location"
navigatable_target = true
stay_in_radius = true
[sub_resource type="BTAction" id="BTAction_lschq"]
script = ExtResource("2_d6sgo")
target_location_var = &"target_location"
[sub_resource type="BTAction" id="BTAction_onf00"]
script = ExtResource("3_ch0o3")
target_var = &"target_location"
[sub_resource type="BTWait" id="BTWait_yneys"]
duration = 3.0
[sub_resource type="BTSequence" id="BTSequence_o4qno"]
children = [SubResource("BTAction_s4a8v"), SubResource("BTAction_lschq"), SubResource("BTAction_onf00"), SubResource("BTWait_yneys")]
[sub_resource type="BTRepeat" id="BTRepeat_o23de"]
forever = true
children = [SubResource("BTSequence_o4qno")]
[resource]
blackboard_plan = SubResource("BlackboardPlan_yo8p7")
root_task = SubResource("BTRepeat_o23de")