update
This commit is contained in:
parent
820f641ebc
commit
55d28cd242
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user