25 lines
632 B
GDScript
25 lines
632 B
GDScript
class_name MultiplayerPC extends PawnController
|
|
|
|
#@export var player_id := 1 :
|
|
#set(id):
|
|
#player_id = id
|
|
#
|
|
#func _enter_tree() -> void:
|
|
#print("Player %d adding Controller for %d" % [Multiplayer.id, player_id])
|
|
##Game.player = self
|
|
#pass
|
|
#
|
|
#func setup(id) -> void:
|
|
#name = "Player " + str(id)
|
|
#player_id = id
|
|
#if Multiplayer.id == id:
|
|
#Game.player = self
|
|
#
|
|
#func _physics_process(delta: float) -> void:
|
|
#var dir = Input.get_vector("west", "east", "north", "south")
|
|
#dir = Vector3(dir.x, 0, dir.y)
|
|
#if dir.length_squared() > 0:
|
|
#body.look_at(body.global_position - dir)
|
|
#velocity = speed * dir
|
|
#move_and_slide()
|