solved.
[Command]
void CmdHitTarget()
{
deer.TakeDamage();
}
that call tells the prefab to take damage… you need to pass what you want damaged from the shoot function (i.e. add a parameter and pass the hit object)
How do I get what I want damaged, and when I get it how do I call the TakeDamage method in the other script? Sorry for being a noob, I’ve done a lot of google searching and whatever I try doesn’t seem to work. Cheers.
solved.