33 lines
1.2 KiB
Text
33 lines
1.2 KiB
Text
[gd_scene format=3 uid="uid://oyqyvj5xo5mf"]
|
|
|
|
[ext_resource type="Script" uid="uid://c6xr2j0g1ep7j" path="res://enemies/enemy.gd" id="1_j7qyq"]
|
|
[ext_resource type="AudioStream" uid="uid://q8b6o255ofgb" path="res://sfx/police-siren_90bpm_A#_major.wav" id="2_bfj6p"]
|
|
|
|
[sub_resource type="Curve" id="Curve_spw8y"]
|
|
_limits = [1.0, 20.0, -1.0, 1.0]
|
|
_data = [Vector2(-1, 20), 0.0, 0.0, 0, 0, Vector2(0.20895529, 4.7216473), -18.980904, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[node name="Enemy" type="CharacterBody3D" unique_id=206023291]
|
|
collision_layer = 8
|
|
collision_mask = 15
|
|
script = ExtResource("1_j7qyq")
|
|
dot_curve = SubResource("Curve_spw8y")
|
|
|
|
[node name="NavAgent" type="NavigationAgent3D" parent="." unique_id=774393024]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="Hurtbox" type="Area3D" parent="." unique_id=688205599]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="Siren" type="AudioStreamPlayer3D" parent="." unique_id=2085366724]
|
|
unique_name_in_owner = true
|
|
stream = ExtResource("2_bfj6p")
|
|
attenuation_model = 2
|
|
unit_size = 12.0
|
|
autoplay = true
|
|
max_distance = 50.0
|
|
bus = &"Police Siren"
|
|
|
|
[connection signal="body_entered" from="Hurtbox" to="." method="_on_hurtbox_body_entered"]
|