limboai/demo/ai/trees/waypoints.tres

34 lines
1.1 KiB
Plaintext
Raw Normal View History

[gd_resource type="BehaviorTree" load_steps=9 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"]
[ext_resource type="Script" path="res://ai/tasks/play_animation.gd" id="2_dg0ss"]
[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
[sub_resource type="BTAction" id="BTAction_yq1vl"]
2022-12-17 07:33:18 +00:00
script = ExtResource("2_dg0ss")
animation_name = "bounce"
2022-12-16 03:16:19 +00:00
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"]
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")