Files
fps_project_1/assets/Enemy_casing.tscn
2024-07-26 17:55:47 -05:00

42 lines
1.5 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://5jhwtkdggfle"]
[ext_resource type="Script" path="res://assets/casing_2.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.248374
radius = 0.062995
[node name="enemycasing" type="RigidBody3D"]
collision_layer = 2
collision_mask = 7
mass = 0.1
continuous_cd = true
max_contacts_reported = 1
contact_monitor = true
linear_damp = 0.1
angular_damp = 0.1
script = ExtResource("1_dxvh8")
[node name="casing2" parent="." instance=ExtResource("2_ba08p")]
transform = Transform3D(0.010472, 1.84078e-05, -2.99998, 2.99998, 0.00523586, 0.010472, 0.0052359, -3, -1.31133e-07, 0, 0, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(-0.00106233, -0.000701004, -0.999999, 0.999999, -0.000431764, -0.00106203, -0.000431026, -1, 0.000701458, -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"]