Add MultiplayerSyncronizers to stations
This commit is contained in:
+2
-2
@@ -147,8 +147,8 @@ func apply_held_state() -> void:
|
||||
and _pickable.collision_mask == 0 \
|
||||
and _pickable.enabled == want_enabled:
|
||||
return
|
||||
if NetworkManager.is_online():
|
||||
print("%s: freezing (non-authority, owner=peer %d)" % [_pickable.name, net_held_by])
|
||||
# if NetworkManager.is_online(): # This was spamming that Knife was frozen every frame.
|
||||
# print("%s: freezing (non-authority, owner=peer %d)" % [_pickable.name, net_held_by])
|
||||
_pickable.freeze = true
|
||||
_pickable.freeze_mode = RigidBody3D.FREEZE_MODE_KINEMATIC
|
||||
_pickable.collision_mask = 0
|
||||
|
||||
@@ -522,7 +522,8 @@ func _on_player_absent(peer_id: int) -> void:
|
||||
# --- Command-line driven test bootstrap -----------------------------------
|
||||
|
||||
func _handle_cmdline() -> void:
|
||||
var args := OS.get_cmdline_user_args()
|
||||
print("Networkmanager _handle_cmdline()")
|
||||
var args := OS.get_cmdline_args()
|
||||
if args.has("--server"):
|
||||
log_line("cmdline: --server")
|
||||
host()
|
||||
|
||||
Reference in New Issue
Block a user