Question by 
               Wesley21spelde · Jan 15, 2016 at 10:32 PM · 
                not workingbulletrpc  
              
 
              punrpc fails
     hey guys i tried everything i know but still it does not work
     this is ment to be a bullet for my online game but the rpc does not work 
 
 
 using UnityEngine;
 using System.Collections;
 
 public class Bullet : MonoBehaviour
 {
     public float curHealth = 10.0f;
 
 
 
 
     [PunRPC]
     void OnCollisionEnter(Collision col)
     {
         if (col.gameObject.name == "Enemy")
 
          GetComponent<PhotonView>().RPC("AddjustCurrentHealth", PhotonTargets.All, curHealth);
     }
 }
 
              
               Comment
              
 
               
              I don't know Photon, but you cannot make the Unity $$anonymous$$essage OnCollisionEnter a RPCCall with the legacy one.
And which one is not working? 
Your answer
 
             Follow this Question
Related Questions
rpc Call problem dont know how to fix this 0 Answers
rpc not working 0 Answers
The requested feature is not implemented. 0 Answers
How to fix this rpc 2 Answers
Bullet Destroy 1 Answer