This commit is contained in:
Gary Steven Keough 2024-12-15 22:43:03 -05:00
parent 820f641ebc
commit 55d28cd242

View File

@ -15,13 +15,14 @@ func _ready():
func interact(): func interact():
if !parent_ship.ship_is_piloted: if player_reference.is_network_authority:
player_reference.set_is_piloting(true) if !parent_ship.ship_is_piloted:
parent_ship.ship_is_piloted = true player_reference.set_is_piloting(true)
parent_ship.ship_is_piloted = true
elif parent_ship.ship_is_piloted:
player_reference.set_is_piloting(false) elif parent_ship.ship_is_piloted:
parent_ship.ship_is_piloted = false player_reference.set_is_piloting(false)
parent_ship.ship_is_piloted = false
parent_ship._sync_piloting_state() parent_ship._sync_piloting_state()