Problem with multiplayer damage when health is stored in player controller

Use get “owning controller” instead of indexed pc.
At most times for multiplayer you can forget about indexed pc.

I would recommend getting all your logic about damage handling into the controller instead of just using the controller as storage for health.

On damage event get owning controller and call a custom event you create for handling the damage logic - inside the controller. So you have everything centralizied. (Logic handling inside controller with server replicated custom event)

1 Like