45 lines
1.8 KiB
Plaintext
45 lines
1.8 KiB
Plaintext
[gd_scene format=3 uid="uid://clx701xdwelgx"]
|
|
|
|
[ext_resource type="Script" uid="uid://b30p1yqojbbbk" path="res://core/ai/ai_base/ai_base.gd" id="1_4d1nn"]
|
|
[ext_resource type="Script" uid="uid://ps3vlu2qvmop" path="res://core/ai/ai_base/state_machine.gd" id="2_q1hg3"]
|
|
[ext_resource type="Script" uid="uid://nga8qx56iwgu" path="res://core/ai/ai_base/idle_state.gd" id="3_26faq"]
|
|
[ext_resource type="Script" uid="uid://bngfthvt04ivv" path="res://core/ai/ai_base/patrol_state.gd" id="4_lim44"]
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_mh3lg"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_mh3lg"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_lim44"]
|
|
radius = 20.0
|
|
|
|
[node name="AiBase" type="CharacterBody3D" unique_id=1228675528]
|
|
script = ExtResource("1_4d1nn")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=214482161]
|
|
mesh = SubResource("CapsuleMesh_mh3lg")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=92811823]
|
|
shape = SubResource("CapsuleShape3D_mh3lg")
|
|
|
|
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="." unique_id=1370024449]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="StateMachine" type="Node" parent="." unique_id=1286404264 node_paths=PackedStringArray("initial_state")]
|
|
unique_name_in_owner = true
|
|
script = ExtResource("2_q1hg3")
|
|
initial_state = NodePath("IdleState")
|
|
|
|
[node name="IdleState" type="Node" parent="StateMachine" unique_id=763668255]
|
|
script = ExtResource("3_26faq")
|
|
state_id = "idle"
|
|
|
|
[node name="PatrolState" type="Node" parent="StateMachine" unique_id=2054606629]
|
|
script = ExtResource("4_lim44")
|
|
state_id = "patrol"
|
|
|
|
[node name="PatrolRadiusShape" type="CollisionShape3D" parent="." unique_id=1379515938]
|
|
unique_name_in_owner = true
|
|
shape = SubResource("SphereShape3D_lim44")
|
|
disabled = true
|
|
debug_color = Color(1, 1, 0, 1)
|