|
So i have this script on my "Hero" that attack target creature that i pressed on and that's the "target". Every creature have this Health Script and it work as it should. But when i hit the creature it wont send an update to all the other players so it wont die for them. { } @RPC function LookLife(currentLife:int, Damage:int, Armor:float){ target.GetComponent("Health").health = currentLife - Damage*Armor; }
(comments are locked)
|

Fixed it by moving the RPC function to Health because i trough i could not call target.GetComponent("Health").health in the attack script. But its all good now