feat: implemented last bits required to create a 'follow player' goal
This commit is contained in:
parent
540d91ddcf
commit
ea730d61b4
7 changed files with 128 additions and 58 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://dpda341t6ipiv"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dpda341t6ipiv"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_7rmf4"]
|
||||
min_value = 0.2
|
||||
|
|
@ -18,38 +18,21 @@ albedo_color = Color(0.94902, 0.909804, 0, 1)
|
|||
[sub_resource type="BoxMesh" id="BoxMesh_f5yvh"]
|
||||
size = Vector3(0.125, 0.14, 0.94)
|
||||
|
||||
[sub_resource type="MoveStateArgs" id="MoveStateArgs_752r2"]
|
||||
argument_property = &"target_position"
|
||||
[sub_resource type="MoveStateArgs" id="MoveStateArgs_ibmkn"]
|
||||
argument_property = &"player_character"
|
||||
|
||||
[sub_resource type="Action" id="Action_ksl64"]
|
||||
[sub_resource type="Action" id="Action_gtisq"]
|
||||
effects = {
|
||||
"prereq": true
|
||||
"is_near_player": true
|
||||
}
|
||||
apply_state = SubResource("MoveStateArgs_752r2")
|
||||
|
||||
[sub_resource type="Action" id="Action_mdru6"]
|
||||
effects = {
|
||||
"not_goal": 1
|
||||
}
|
||||
|
||||
[sub_resource type="AnimateStateArgs" id="AnimateStateArgs_tlart"]
|
||||
argument_property = &"fire_weapon"
|
||||
|
||||
[sub_resource type="Action" id="Action_7v1i5"]
|
||||
prerequisites = {
|
||||
"prereq": true
|
||||
}
|
||||
effects = {
|
||||
"goal": true
|
||||
}
|
||||
apply_state = SubResource("AnimateStateArgs_tlart")
|
||||
apply_state = SubResource("MoveStateArgs_ibmkn")
|
||||
|
||||
[sub_resource type="Goal" id="Goal_sqtwb"]
|
||||
goal_state = {
|
||||
"target_dead": true
|
||||
"is_near_player": true
|
||||
}
|
||||
prerequisites = {
|
||||
"has_target": true
|
||||
"is_near_player": false
|
||||
}
|
||||
|
||||
[node name="PlayerCharacter" type="CharacterActor"]
|
||||
|
|
@ -83,5 +66,5 @@ surface_material_override/0 = SubResource("StandardMaterial3D_scmx3")
|
|||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.53551, 0.931313, 0)
|
||||
|
||||
[node name="Planner" type="Planner" parent="."]
|
||||
actions = [SubResource("Action_ksl64"), SubResource("Action_mdru6"), SubResource("Action_7v1i5")]
|
||||
actions = [SubResource("Action_gtisq")]
|
||||
goals = [SubResource("Goal_sqtwb")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue