Armazon/props/items/item_redarrow.tscn
2024-01-28 16:05:33 -05:00

45 lines
1.6 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://ba13afk2ubd6j"]
[ext_resource type="Script" path="res://scripts/packageitem.gd" id="1_s7goq"]
[ext_resource type="Material" uid="uid://bdk2p7q54ftfv" path="res://assets/props/blake3/mat_arrow.tres" id="2_qssty"]
[ext_resource type="AudioStream" uid="uid://jayxq7lbhlkq" path="res://assets/audio/alarm.wav" id="3_d2li2"]
[sub_resource type="SphereShape3D" id="SphereShape3D_pj2o1"]
radius = 0.27
[sub_resource type="QuadMesh" id="QuadMesh_1rwqu"]
[node name="ItemCylinder" type="RigidBody3D"]
collision_layer = 5
axis_lock_angular_x = true
axis_lock_angular_y = true
axis_lock_angular_z = true
mass = 0.3
max_contacts_reported = 2
contact_monitor = true
script = ExtResource("1_s7goq")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_pj2o1")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.168623, 0.191574, 0)
mesh = SubResource("QuadMesh_1rwqu")
surface_material_override/0 = ExtResource("2_qssty")
[node name="alarm" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_d2li2")
max_db = -1.0
[node name="show" type="Timer" parent="."]
wait_time = 0.1
autostart = true
[node name="hide" type="Timer" parent="."]
wait_time = 0.2
[connection signal="touched" from="." to="alarm" method="play"]
[connection signal="touched" from="." to="hide" method="start"]
[connection signal="timeout" from="show" to="." method="set_visible" binds= [true]]
[connection signal="timeout" from="hide" to="." method="set_visible" binds= [false]]