WIP: Handle player disconnected
This commit is contained in:
@ -64,10 +64,8 @@ func send_position(x: float, y: float, z: float):
|
||||
var real_position: Vector3 = server_node.global_position
|
||||
var difference: Vector3 = desired_position - real_position
|
||||
if is_vector_a_lower_than_b(difference, Vector3(0.1, 0.1, 0.1)):
|
||||
print("trustin")
|
||||
server_node.global_position = desired_position
|
||||
else:
|
||||
print("not trustin")
|
||||
adjust_position.rpc_id(owner_id, real_position.x, real_position.y, real_position.z)
|
||||
|
||||
@rpc("authority", "call_local")
|
||||
|
Reference in New Issue
Block a user