TinyAdventure/ai/trees/wander.tres

33 lines
1.2 KiB
Plaintext
Raw Normal View History

[gd_resource type="BehaviorTree" load_steps=10 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="BTRandomWait" id="BTRandomWait_gert2"]
max_duration = 3.0
[sub_resource type="BTSequence" id="BTSequence_o4qno"]
children = [SubResource("BTAction_s4a8v"), SubResource("BTAction_lschq"), SubResource("BTAction_onf00"), SubResource("BTRandomWait_gert2")]
[resource]
blackboard_plan = SubResource("BlackboardPlan_yo8p7")
root_task = SubResource("BTSequence_o4qno")