limboai/demo/ai/trees/waypoints.tres

34 lines
1.1 KiB
Plaintext

[gd_resource type="BehaviorTree" load_steps=9 format=3 uid="uid://cjkqi41oagagd"]
[ext_resource type="Script" path="res://ai/tasks/arrive_pos.gd" id="1_rhs33"]
[ext_resource type="Script" path="res://ai/tasks/play_animation.gd" id="2_dg0ss"]
[sub_resource type="BTAction" id="BTAction_3xal7"]
script = ExtResource("1_rhs33")
target_position_var = "wp"
speed_var = "speed"
tolerance = 50.0
[sub_resource type="BTAction" id="BTAction_yq1vl"]
script = ExtResource("2_dg0ss")
animation_name = "bounce"
animation_player = NodePath("AnimationPlayer")
[sub_resource type="BTSequence" id="BTSequence_a2ng0"]
children = [SubResource("BTAction_3xal7"), SubResource("BTAction_yq1vl")]
[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")