feat: removed script from player_character.tscn
This commit is contained in:
parent
a1ee9f0160
commit
d3b9e54b0b
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://dpda341t6ipiv"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://dpda341t6ipiv"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_7rmf4"]
|
||||
min_value = 0.2
|
||||
|
@ -18,16 +18,23 @@ 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="Action" id="Action_ksl64"]
|
||||
effects = {
|
||||
"prereq": 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
|
||||
|
@ -35,23 +42,15 @@ prerequisites = {
|
|||
effects = {
|
||||
"goal": true
|
||||
}
|
||||
apply_state = SubResource("AnimateStateArgs_tlart")
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_ncqfl"]
|
||||
script/source = "extends Planner
|
||||
|
||||
func get_goal() -> bool:
|
||||
return false
|
||||
|
||||
func get_prereq() -> bool:
|
||||
return false
|
||||
|
||||
func get_not_goal() -> int:
|
||||
return 0
|
||||
|
||||
func _ready():
|
||||
var goal : Goal = ResourceLoader.load(\"res://new_goal.tres\")
|
||||
var plan : Array = self.gdscript_make_plan(goal)
|
||||
"
|
||||
[sub_resource type="Goal" id="Goal_sqtwb"]
|
||||
goal_state = {
|
||||
"target_dead": true
|
||||
}
|
||||
prerequisites = {
|
||||
"has_target": true
|
||||
}
|
||||
|
||||
[node name="PlayerCharacter" type="CharacterActor"]
|
||||
rotation_speed_curve = SubResource("Curve_7rmf4")
|
||||
|
@ -85,4 +84,4 @@ 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")]
|
||||
script = SubResource("GDScript_ncqfl")
|
||||
goals = [SubResource("Goal_sqtwb")]
|
||||
|
|
Loading…
Reference in a new issue