[gd_scene load_steps=7 format=2]

[ext_resource path="res://textures/enemies/scorpion.png" type="Texture" id=1]
[ext_resource path="res://objects/level/DamageArea.tscn" type="PackedScene" id=2]
[ext_resource path="res://objects/enemies/scorpion/Scorpion.gd" type="Script" id=3]

[sub_resource type="BoxShape" id=3]
extents = Vector3( 0.5, 0, 0.5 )

[sub_resource type="CylinderShape" id=2]
radius = 20.0
height = 20.0

[sub_resource type="SphereShape" id=4]
radius = 3.27233

[node name="Scorpion" type="KinematicBody"]
script = ExtResource( 3 )

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

[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.539272, 0 )
shape = SubResource( 3 )

[node name="InnerDamage" parent="." instance=ExtResource( 2 )]
transform = Transform( 0.9, 0, 0, 0, 0.9, 0, 0, 0, 0.9, 0, 0, 0 )
damage = 5
frequency = 0.2

[node name="MiddleDamage" parent="." instance=ExtResource( 2 )]
transform = Transform( 1.8, 0, 0, 0, 1.8, 0, 0, 0, 1.8, 0, 0, 0 )
damage = 3
frequency = 0.4

[node name="OuterDamage" parent="." instance=ExtResource( 2 )]
transform = Transform( 3.4, 0, 0, 0, 3.4, 0, 0, 0, 3.4, 0, 0, 0 )
damage = 1
frequency = 0.6

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

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

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

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

[node name="CollisionShape" type="CollisionShape" parent="Poision"]
shape = SubResource( 4 )

[connection signal="body_entered" from="BeenHere" to="." method="_on_BeenHere_body_entered"]
[connection signal="camera_entered" from="VisibilityNotifier" to="." method="_on_VisibilityNotifier_camera_entered"]
[connection signal="body_entered" from="Poision" to="." method="_on_Poision_body_entered"]
