33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
[gd_scene format=3 uid="uid://dd8wn62anbts8"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://clx701xdwelgx" path="res://core/ai/agents/base/ai_base.tscn" id="1_p2hpa"]
|
|
[ext_resource type="PackedScene" uid="uid://bjp8wbrtfl4v2" path="res://core/ai/agents/cow/cow_mannequin.tscn" id="2_6gadt"]
|
|
[ext_resource type="Script" uid="uid://d3hy70ec8vqo5" path="res://core/ai/framework/run_animation_state.gd" id="2_vlvvc"]
|
|
[ext_resource type="Script" uid="uid://bngfthvt04ivv" path="res://core/ai/framework/patrol_state.gd" id="3_su7en"]
|
|
|
|
[node name="AiCow" unique_id=1228675528 node_paths=PackedStringArray("anim_player") instance=ExtResource("1_p2hpa")]
|
|
anim_player = NodePath("CowMannequin/AnimationPlayer")
|
|
entity_type = 1
|
|
entity_name = "Cow"
|
|
|
|
[node name="StateMachine" parent="." index="1" unique_id=1286404264 node_paths=PackedStringArray("initial_state")]
|
|
initial_state = NodePath("IdleState")
|
|
|
|
[node name="IdleState" type="Node" parent="StateMachine" index="0" unique_id=2033863310]
|
|
script = ExtResource("2_vlvvc")
|
|
state_id = &"idle"
|
|
next_state_id = &"patrol"
|
|
animation_name = "custom/idle"
|
|
|
|
[node name="PatrolState" type="Node" parent="StateMachine" index="1" unique_id=2076820654]
|
|
script = ExtResource("3_su7en")
|
|
state_id = &"patrol"
|
|
next_state_id = &"idle"
|
|
animation_name = "custom/walking"
|
|
exit_on_action_finished = true
|
|
|
|
[node name="CowMannequin" parent="." index="3" unique_id=1390675137 instance=ExtResource("2_6gadt")]
|
|
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, -0.9, 0)
|
|
|
|
[editable path="CowMannequin"]
|