added timeout to broken objects
This commit is contained in:
@@ -194,8 +194,9 @@ shadow_mesh = SubResource("ArrayMesh_i03s3")
|
||||
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_611bg"]
|
||||
points = PackedVector3Array(0.0944869, -0.228895, -0.107533, -0.056244, 0.175358, -0.0321848, 0.156169, -0.153471, 0.00204893, -0.0767958, 0.0657196, 0.104823, 0.0259363, 0.175358, -0.018472, 0.0739083, -0.146688, -0.128102, -0.0988416, 0.172671, 0.0541892, -0.0151405, -0.0780892, -0.107533, 0.121907, -0.153471, -0.107533, 0.108197, -0.249458, -0.0801314, -0.0219821, 0.0657196, 0.118535, -0.117926, -0.0507011, 0.00204893, 0.046488, 0.182226, 0.0363068, 0.0259363, 0.175358, 0.0979662, -0.0836643, 0.182226, -0.018472, -0.0467355, 0.173692, 0.107146, 0.128722, -0.0849576, 0.0363068, 0.156169, -0.153471, -0.0253284, -0.0151405, 0.182226, -0.0321848, 0.115012, -0.256326, -0.100676, -0.104216, 0.0109006, 0.056876, 0.142459, -0.153471, 0.00204893, -0.0151405, -0.0986517, -0.100676, -0.0853973, 0.172008, 0.0866411, -0.0915414, -0.0431356, -0.0293689, 0.128722, -0.249458, -0.0801314, 0.00543814, -0.0918261, -0.114389, -0.111058, -0.0507011, 0.00890533, 0.0396464, 0.182226, 0.0157617, -0.0905059, 0.0314631, 0.0774211, 0.115012, -0.235721, -0.0664185, 0.046488, 0.182226, 0.0431632)
|
||||
|
||||
[node name="Bottle1Pieces" type="Node3D" node_paths=PackedStringArray("sound") groups=["scene_rigidbody"]]
|
||||
[node name="Bottle1Pieces" type="Node3D" node_paths=PackedStringArray("timer", "sound") groups=["scene_rigidbody"]]
|
||||
script = ExtResource("1_3nyc3")
|
||||
timer = NodePath("Timer")
|
||||
sound = NodePath("BrokenSound")
|
||||
|
||||
[node name="Piece 1" type="RigidBody3D" parent="." groups=["scene_rigidbody"]]
|
||||
@@ -265,3 +266,10 @@ shape = SubResource("ConvexPolygonShape3D_611bg")
|
||||
|
||||
[node name="BrokenSound" type="AudioStreamPlayer3D" parent="."]
|
||||
stream = ExtResource("1_vmlqu")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 60.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user