feat: implemented heal action and goal
This commit is contained in:
parent
a78bbfd3b5
commit
f9b3c6eb3f
18 changed files with 131 additions and 42 deletions
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://ba17jrcaduowj"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://ba17jrcaduowj"]
|
||||
|
||||
[ext_resource type="Goal" uid="uid://b4i4e34046n44" path="res://AI/defeat_enemy_unit.tres" id="1_b1qo1"]
|
||||
[ext_resource type="Goal" uid="uid://btv8ultseri3q" path="res://AI/maintain_health.tres" id="2_k42dl"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://crkh5gahl2ci6" path="res://Animation/bean_characters.res" id="2_lrpu6"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_5pqvg"]
|
||||
|
|
@ -24,11 +25,11 @@ collision_layer = 6
|
|||
collision_mask = 0
|
||||
|
||||
[node name="ActorWorldState" type="EnemyWorldState" parent="."]
|
||||
editor_available_goals = [ExtResource("1_b1qo1")]
|
||||
editor_available_goals = [ExtResource("2_k42dl"), ExtResource("1_b1qo1")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Planner" type="Planner" parent="."]
|
||||
actions_inspector = [3, 2, 4]
|
||||
actions_inspector = [3, 2, 4, 5]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="EntityHealth" type="EntityHealth" parent="."]
|
||||
|
|
@ -63,7 +64,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4512, 0)
|
|||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.31501, 0)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.999222, -0.0394342, 0, 0.0394342, 0.999222, 0, 1.01253, 0.443459)
|
||||
transform = Transform3D(1, 0, 0, 0, 0.999222, -0.0394342, 0, 0.0394342, 0.999222, 0, 1.013, 0)
|
||||
shape = SubResource("SphereShape3D_drlm2")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue