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.
 
 
 
Liblast/Testbed/PlayerSpawner.gd

10 lines
269 B

extends MultiplayerSpawner
func _spawn_custom(data):
if typeof(data) != TYPE_INT:
push_error("Invalid player spawn received")
return
var pid : int = data
var character = preload("res://Character.tscn").instantiate()
character.set_player(pid)
return character