Fixed team interactions

This commit is contained in:
Rendo 2025-11-27 11:30:42 +05:00
commit 917d52680c
5 changed files with 45 additions and 21 deletions

View file

@ -36,6 +36,9 @@ properties/2/replication_mode = 1
properties/3/path = NodePath(".:hp")
properties/3/spawn = true
properties/3/replication_mode = 1
properties/4/path = NodePath(".:team")
properties/4/spawn = true
properties/4/replication_mode = 2
[sub_resource type="Animation" id="Animation_a8ls1"]
length = 0.001
@ -317,5 +320,14 @@ libraries = {
&"": SubResource("AnimationLibrary_a8ls1")
}
[node name="TeamUpdater" type="Node" parent="." node_paths=PackedStringArray("player")]
script = ExtResource("7_a8ls1")
player = NodePath("..")
layer = true
inverse = true
[connection signal="spawned" from="." to="Camera3D/RayCast3D/TeamUpdater" method="on_spawned"]
[connection signal="spawned" from="." to="TeamUpdater" method="on_spawned"]
[editable path="Camera3D/molikman_hands"]
[editable path="WeaponSystem/StartingPistol"]