Guest User

OnTakeDamage

a guest
Feb 26th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1.  if (e.OtherPlayer.Id != InvalidId)
  2.             {    
  3.                     Player TakeBy = (Player)e.OtherPlayer;
  4.                     base.OnTakeDamage(e);
  5.                     if (TakeBy.Attraction == AttractionTypes.Attraction_WG)
  6.                         TakeBy.wgDamages += e.Amount;
  7.             }
Add Comment
Please, Sign In to add comment