42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
[gd_scene format=3 uid="uid://ceqxsqfiotm5j"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://mvh2v6v72stt" path="res://core/ai/agents/human/ai_human.tscn" id="1_l2y7m"]
|
|
[ext_resource type="Script" uid="uid://bngfthvt04ivv" path="res://core/ai/framework/patrol_state.gd" id="3_2oda6"]
|
|
[ext_resource type="Script" uid="uid://d3hy70ec8vqo5" path="res://core/ai/framework/run_animation_state.gd" id="4_2oda6"]
|
|
|
|
[node name="AiFarmer" unique_id=1228675528 instance=ExtResource("1_l2y7m")]
|
|
entity_type = 0
|
|
entity_name = "Farmer"
|
|
allowed_biomes = Array[String](["countryside"])
|
|
|
|
[node name="StateMachine" parent="." index="1" unique_id=1286404264 node_paths=PackedStringArray("initial_state")]
|
|
initial_state = NodePath("GatherState")
|
|
|
|
[node name="PatrolState" type="Node" parent="StateMachine" index="0" unique_id=930272128]
|
|
script = ExtResource("3_2oda6")
|
|
state_id = &"patrol"
|
|
next_state_id = &"gather"
|
|
animation_name = "custom/walking"
|
|
exit_on_action_finished = true
|
|
|
|
[node name="GatherState" type="Node" parent="StateMachine" index="1" unique_id=48091671]
|
|
script = ExtResource("4_2oda6")
|
|
state_id = &"gather"
|
|
next_state_id = &"idle"
|
|
animation_name = "custom/gathering"
|
|
exit_on_animation_finished = true
|
|
min_wait_time = 0.0
|
|
max_wait_time = 0.0
|
|
|
|
[node name="IdleState" type="Node" parent="StateMachine" index="2" unique_id=402985597]
|
|
script = ExtResource("4_2oda6")
|
|
state_id = &"idle"
|
|
next_state_id = &"patrol"
|
|
animation_name = "custom/idle"
|
|
|
|
[node name="Skeleton3D" parent="BaseMesh/BaseMesh" parent_id_path=PackedInt32Array(1846171523, 1142246531) index="0" unique_id=928995817]
|
|
bones/8/rotation = Quaternion(-0.6173422, -0.37346625, 0.5666242, -0.3979305)
|
|
bones/46/rotation = Quaternion(0.059241787, 0.12928401, 0.9836761, -0.110261135)
|
|
|
|
[editable path="BaseMesh"]
|