Advertisement
Munchy2007

Unet5Tut5Pt1RayCastCmdShotSomeone

Feb 24th, 2016
4,619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.15 KB | None | 0 0
  1. [Command]
  2. void CmdDoShotSomeone(GameObject fromPlayer, GameObject hitPlayer)
  3. {
  4.     hitPlayer.GetComponent<HealthAndDamage>().TakeDamage(fromPlayer);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement