only mark interactive for yourself
This commit is contained in:
parent
4bde2b3a16
commit
03421264fd
@ -55,6 +55,7 @@ func _process(_delta: float) -> void:
|
|||||||
|
|
||||||
func _physics_process(delta: float) -> void:
|
func _physics_process(delta: float) -> void:
|
||||||
## Process interactivity selection.
|
## Process interactivity selection.
|
||||||
|
if id == multiplayer.get_unique_id():
|
||||||
var collider: Object = null
|
var collider: Object = null
|
||||||
if _line_of_sight.is_colliding():
|
if _line_of_sight.is_colliding():
|
||||||
collider = _line_of_sight.get_collider(0)
|
collider = _line_of_sight.get_collider(0)
|
||||||
@ -65,7 +66,6 @@ func _physics_process(delta: float) -> void:
|
|||||||
collider.get_parent().mark_interactive()
|
collider.get_parent().mark_interactive()
|
||||||
_interaction_selection = collider
|
_interaction_selection = collider
|
||||||
|
|
||||||
|
|
||||||
# Add the gravity.
|
# Add the gravity.
|
||||||
if not is_on_floor():
|
if not is_on_floor():
|
||||||
velocity += get_gravity() * delta
|
velocity += get_gravity() * delta
|
||||||
|
Loading…
Reference in New Issue
Block a user