123456789101112131415161718192021222324252627282930313233343536 |
- [gd_scene load_steps=5 format=3 uid="uid://cs5vfev0lasyn"]
- [ext_resource type="Script" path="res://entities/objects/button_trigger/ButtonTrigger.gd" id="1_wef4m"]
- [ext_resource type="Material" uid="uid://drbi6wjcoybek" path="res://entities/objects/button_trigger/button_gate_material.material" id="2_sw3ka"]
- [sub_resource type="BoxShape3D" id="BoxShape3D_8u0rb"]
- size = Vector3(0.6, 1.2, 0.6)
- [sub_resource type="CylinderMesh" id="CylinderMesh_62jag"]
- radial_segments = 7
- rings = 2
- [node name="ButtonTrigger" type="Area3D" groups=["trigger"]]
- collision_layer = 4
- collision_mask = 38
- script = ExtResource("1_wef4m")
- on_enter = {}
- on_exit = {}
- [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
- shape = SubResource("BoxShape3D_8u0rb")
- [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
- transform = Transform3D(1.22394, 0, 0, 0, 0.05922, 0, 0, 0, 1.22394, 0, 0, 0)
- mesh = SubResource("CylinderMesh_62jag")
- surface_material_override/0 = ExtResource("2_sw3ka")
- [node name="Timer" type="Timer" parent="."]
- wait_time = 0.5
- one_shot = true
- autostart = true
- [connection signal="body_entered" from="." to="." method="_on_ButtonTrigger_body_entered"]
- [connection signal="body_exited" from="." to="." method="_on_ButtonTrigger_body_exited"]
- [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|