Send Damage Over Network

Options
Notes:
-Client Auth
-Moving from PUN

Greetings! I'm currently stuck on how I should send damage over the network.
What I have is:
1) Shoot Raycast
2) If raycast.collider.transform.root -> Get PlayerHealth Component
3) (there's an ApplyDamage function inside) ApplyDamage(damage_Variable)

How would I go about networking this?

Comments

  • stanchion
    Options
    an event should work fine for this
  • stanchion said:

    an event should work fine for this

    Sorry to ask for more assistance, but how would I go about doing this in an event? Even after reading the documents, things weren't quite clear for me.
  • stanchion
    Options
    1) Shoot Raycast
    2) If raycast.collider.transform.root -> send event to owner of player you just hit
    3) player owner recieves event, does damage to owned player