From a6ba12bd76423a445f1a27a0ba48b5ddef620e21 Mon Sep 17 00:00:00 2001 From: Chris Bell Date: Sat, 28 Dec 2024 16:23:10 -0600 Subject: [PATCH] Forgot to actually create the sync_to_peer function in networkmanager --- assets/core/networking/scripts/NetworkManager.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/core/networking/scripts/NetworkManager.gd b/assets/core/networking/scripts/NetworkManager.gd index 0c59261..86df267 100644 --- a/assets/core/networking/scripts/NetworkManager.gd +++ b/assets/core/networking/scripts/NetworkManager.gd @@ -393,4 +393,7 @@ func sync_property(node_id: String, property_name: String, value: Variant): var packet_data = {"message":"property_update", "node_id": node_id, "property_name":property_name, "value":value} send_p2p_packet(0, packet_data) - + +func sync_property_to_peer(node_id: String, property_name: String, value: Variant, target_peer: int): + var packet_data = {"message":"property_update", "node_id": node_id, "property_name": property_name, "value": value} + send_p2p_packet(target_peer, packet_data)