Question by 
               Wesley21spelde · Jan 17, 2016 at 04:47 PM · 
                scripting problemnot workingrpc  
              
 
              The requested feature is not implemented.
Hey guys What Does This meen?
The requested feature is not implemented.
how can i fix this so i can get my rpc working
 using UnityEngine;
 using System.Collections;
 using System;
 
 public class EnemyHealth : MonoBehaviour
 {
     public int maxHealth = 100;
     public float curHealth = 10;
 
     [PunRPC]
     void OnCollisionEnter(Collision col)
     {
         if (col.transform.tag == "Bullet")
         {
             //Die();
             PhotonView pv = PhotonView.Get(this);
             pv.RPC("AddjustCurrentHealth", RPCMode.All, curHealth);
 
 
         }
     }
 
     [PunRPC]
     public void AddjustCurrentHealth(float adj)
     {
 
          curHealth += adj;
 
         if (curHealth < 0)
             curHealth = 0;
 
         if (curHealth > maxHealth)
             curHealth = maxHealth;
 
         if (maxHealth < 1)
             maxHealth = 1;
 
         if (curHealth < 10)
             Die();
     }
 
     [PunRPC]
     void Die()
     {
 
         PhotonView.Destroy(gameObject);
     }
 }
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
health script not working 0 Answers
How to fix this rpc 2 Answers
C# Script not working as expected 2 Answers
rpc message does not work 0 Answers