Files
fps_project_1/assets/Enemy_casing.tscn
2024-11-04 23:04:56 -06:00

42 lines
1.6 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://5jhwtkdggfle"]
[ext_resource type="Script" path="res://assets/casing.gd" id="1_dxvh8"]
[ext_resource type="PackedScene" uid="uid://bv0sfqdgwa85p" path="res://assets/Models/casing.blend" id="2_ba08p"]
[ext_resource type="AudioStream" uid="uid://c76b5enfeodn5" path="res://assets/Audio/coin-drop-SBA-300024590.wav" id="3_2vc1o"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ejwa0"]
margin = 0.001
height = 0.122751
radius = 0.0315378
[node name="enemycasing" type="RigidBody3D" groups=["spawned"]]
collision_layer = 0
collision_mask = 5
mass = 0.1
continuous_cd = true
contact_monitor = true
max_contacts_reported = 1
linear_damp = 0.1
angular_damp = 0.1
script = ExtResource("1_dxvh8")
[node name="casing2" type="Node3D" parent="." instance=ExtResource("2_ba08p")]
transform = Transform3D(0.00523599, 9.20396e-06, -1.49999, 1.49999, 0.00261793, 0.005236, 0.00261795, -1.5, -6.55667e-08, 0, 0, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(-0.00106233, -0.000701044, -0.999999, 0.999999, -0.00043182, -0.00106203, -0.000431074, -1, 0.000701502, -7.7486e-06, 0.000259597, -3.74019e-06)
shape = SubResource("CylinderShape3D_ejwa0")
[node name="Timer" type="Timer" parent="."]
wait_time = 30.0
one_shot = true
autostart = true
[node name="DropSound" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_2vc1o")
unit_size = 1.0
bus = &"SFX"
[connection signal="body_shape_entered" from="." to="." method="_on_body_shape_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]