Files
Babushka/prefabs/interaction_area.tscn
T

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-12-20 16:28:02 +01:00
[gd_scene load_steps=3 format=3 uid="uid://ob04y3syvo0e"]
2025-04-06 18:46:59 +02:00
[ext_resource type="Script" uid="uid://dumwt7lledufm" path="res://scripts/CSharp/Common/CharacterControls/InteractionArea.cs" id="1_b15wn"]
2024-12-20 16:28:02 +01:00
[sub_resource type="SphereShape3D" id="SphereShape3D_i8sim"]
2025-04-06 18:46:59 +02:00
resource_local_to_scene = true
2025-04-06 22:03:13 +02:00
radius = 2.0
2024-12-20 16:28:02 +01:00
2025-03-26 00:26:29 +01:00
[node name="InteractionArea" type="Node3D" node_paths=PackedStringArray("_area", "_label")]
script = ExtResource("1_b15wn")
_area = NodePath("Area3D")
_label = NodePath("Label3D")
2024-12-20 16:28:02 +01:00
[node name="Area3D" type="Area3D" parent="."]
collision_mask = 16
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
shape = SubResource("SphereShape3D_i8sim")
2024-12-20 20:34:10 +01:00
[node name="Label3D" type="Label3D" parent="."]
2025-04-06 18:46:59 +02:00
visible = false
2024-12-20 20:34:10 +01:00
sorting_offset = 100.0
2025-04-06 20:50:55 +02:00
pixel_size = 0.01
2024-12-20 20:34:10 +01:00
billboard = 1
no_depth_test = true
fixed_size = true
2025-04-06 22:03:13 +02:00
render_priority = 100
outline_render_priority = 99
2025-04-06 20:50:55 +02:00
text = "[E]"
2025-04-06 22:03:13 +02:00
font_size = 20
outline_size = 8
2024-12-20 20:34:10 +01:00
2025-04-04 00:22:35 +02:00
[connection signal="body_entered" from="Area3D" to="." method="OnPlayerEntered"]
[connection signal="body_exited" from="Area3D" to="." method="OnPlayerExited"]