Send Damage Over Network
Options
in Photon Bolt
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?
-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?
0
Comments
-
an event should work fine for this1
-
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 said:an event should work fine for this
0 -
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 player1