This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
magician/rpc_handler.tscn
T
2025-06-28 15:19:04 +02:00

15 lines
424 B
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://dd3obeotog37w"]
[sub_resource type="GDScript" id="GDScript_flq8k"]
script/source = "extends Node
@rpc(\"any_peer\", \"call_local\", \"reliable\")
func ring_bell(id: int) -> void:
$BellLabel.text = str(id) + \" has rung the bell!\"
await get_tree().create_timer(1.0).timeout
$BellLabel.text = \"\"
"
[node name="RPCHandler" type="Node"]
script = SubResource("GDScript_flq8k")