Ship mostly works #10

Merged
chrisbell merged 60 commits from feature/ship-syncing into develop 2024-12-29 04:35:51 +00:00
Showing only changes of commit 55d28cd242 - Show all commits

View File

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