40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
[gd_resource type="BehaviorTree" load_steps=10 format=3 uid="uid://cjkqi41oagagd"]
|
|
|
|
[ext_resource type="Script" path="res://ai/tasks/arrive_pos.gd" id="1_rhs33"]
|
|
|
|
[sub_resource type="BTAction" id="BTAction_3xal7"]
|
|
script = ExtResource("1_rhs33")
|
|
target_position_var = "wp"
|
|
speed_var = "speed"
|
|
tolerance = 50.0
|
|
|
|
[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"
|
|
|
|
[sub_resource type="BTWait" id="BTWait_qs55a"]
|
|
duration = 0.1
|
|
|
|
[sub_resource type="BTSequence" id="BTSequence_a2ng0"]
|
|
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"]
|
|
children = [SubResource("BTForEach_0cp04")]
|
|
duration = 3.0
|
|
|
|
[sub_resource type="BTSelector" id="BTSelector_5dclr"]
|
|
children = [SubResource("BTCooldown_gen0l")]
|
|
|
|
[resource]
|
|
root_task = SubResource("BTSelector_5dclr")
|