mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-16 00:44:50 +00:00
🔊 add warning about missing damage_dealer
This commit is contained in:
parent
6222bf0254
commit
82e0e8fa13
1 changed files with 2 additions and 0 deletions
|
|
@ -36,5 +36,7 @@ func _physics_process(_delta : float) -> void:
|
||||||
if area is HealthComponent and is_multiplayer_authority():
|
if area is HealthComponent and is_multiplayer_authority():
|
||||||
if damage_dealer:
|
if damage_dealer:
|
||||||
(area as HealthComponent).damage.rpc(damage, damage_dealer.player_id, damage_dealer.team_id)
|
(area as HealthComponent).damage.rpc(damage, damage_dealer.player_id, damage_dealer.team_id)
|
||||||
|
else:
|
||||||
|
push_warning("explosion has no damage_dealer")
|
||||||
|
|
||||||
set_physics_process(false)
|
set_physics_process(false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue