[gd_scene load_steps=7 format=2]

[ext_resource path="res://textures/enemies/gettyimages-182150336-612x612.jpg" type="Texture" id=1]
[ext_resource path="res://objects/enemies/crabhead/Crabhead.gd" type="Script" id=2]
[ext_resource path="res://objects/enemies/crabhead/Attack.gd" type="Script" id=3]

[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.579075, 0.710452, 0.386547 )

[sub_resource type="SphereShape" id=2]
radius = 1.19501

[sub_resource type="CylinderShape" id=3]
radius = 50.0
height = 1.5

[node name="Crabhead" type="KinematicBody" groups=[
"crabhead",
"entity",
]]
pause_mode = 1
script = ExtResource( 2 )

[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 1, 0, 0, 0 )
texture = ExtResource( 1 )

[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 1 )

[node name="Hurt" type="AudioStreamPlayer3D" parent="."]
unit_db = 12.0
max_db = 6.0

[node name="Attack" type="Area" parent="."]
script = ExtResource( 3 )

[node name="CollisionShape" type="CollisionShape" parent="Attack"]
shape = SubResource( 2 )

[node name="Aggro" type="Area" parent="."]

[node name="CollisionShape" type="CollisionShape" parent="Aggro"]
shape = SubResource( 3 )

[node name="RayCast" type="RayCast" parent="."]

[connection signal="body_entered" from="Attack" to="." method="_on_Attack_body_entered"]
[connection signal="body_entered" from="Aggro" to="." method="_on_Aggro_body_entered"]
