limboai/demo/ai/trees/waypoints.tres

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-07-23 16:16:52 +00:00
[gd_resource type="BehaviorTree" load_steps=10 format=3 uid="uid://cjkqi41oagagd"]
2022-12-17 07:33:18 +00:00
[ext_resource type="Script" path="res://ai/tasks/arrive_pos.gd" id="1_rhs33"]
[sub_resource type="BTAction" id="BTAction_3xal7"]
2022-12-17 07:33:18 +00:00
script = ExtResource("1_rhs33")
target_position_var = "wp"
speed_var = "speed"
tolerance = 50.0
2023-08-14 11:29:16 +00:00
[sub_resource type="BBNode" id="BBNode_0t2vk"]
resource_name = "AnimationPlayer"
saved_value = NodePath("AnimationPlayer")
[sub_resource type="BTPlayAnimation" id="BTPlayAnimation_s01ov"]
await_completion = 1.0
animation_player = SubResource("BBNode_0t2vk")
animation_name = &"bounce"
2023-07-23 16:16:52 +00:00
[sub_resource type="BTWait" id="BTWait_qs55a"]
duration = 0.1
[sub_resource type="BTSequence" id="BTSequence_a2ng0"]
2023-08-14 11:29:16 +00:00
children = [SubResource("BTAction_3xal7"), SubResource("BTPlayAnimation_s01ov"), SubResource("BTWait_qs55a")]
[sub_resource type="BTForEach" id="BTForEach_0cp04"]
children = [SubResource("BTSequence_a2ng0")]
array_var = "waypoints"
save_var = "wp"
[sub_resource type="BTCooldown" id="BTCooldown_gen0l"]
2022-12-17 07:33:18 +00:00
children = [SubResource("BTForEach_0cp04")]
duration = 3.0
[sub_resource type="BTSelector" id="BTSelector_5dclr"]
children = [SubResource("BTCooldown_gen0l")]
[resource]
root_task = SubResource("BTSelector_5dclr")