A Libre Multiplayer FPS Game built with Godot 4 engine and a fully open-source toolchain https://libla.st
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
400 B

extends Node3D
@onready var input = $PlayerInput
func set_player(pid: int):
name = str(pid)
$Label3D.text = str(pid)
func _process(delta):
if multiplayer.has_multiplayer_peer() and is_multiplayer_authority():
# Apply the user input
input.apply(self, delta)
func _on_player_input_ward_placed(ward_type):
print("Player %s is trying to place a ward." % name)