Proper death
This commit is contained in:
parent
e8af70b198
commit
d918533ebe
4 changed files with 20 additions and 4 deletions
|
|
@ -49,6 +49,7 @@ func die() -> void:
|
|||
died.emit()
|
||||
die_on_peers.rpc()
|
||||
passived = true
|
||||
collision_layer = 0
|
||||
|
||||
@rpc("authority","call_remote","reliable")
|
||||
func die_on_peers():
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ var debuff_tween: Tween
|
|||
|
||||
func disable() -> void:
|
||||
disabled = true
|
||||
player.velocity = Vector3.ZERO
|
||||
|
||||
func process_movement(max_speed: float,acceleration: float,deceleration: float,delta: float) -> void:
|
||||
if is_multiplayer_authority() == false:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue