333GameStudio

Bullet damage (js)

Mar 20th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #pragma strict
  2.  
  3. var Dammage = 100;
  4.  
  5. function OnCollisionEnter (info : Collision)
  6. {
  7. info.transform.SendMessage("ApplyDammage", Dammage, SendMessageOptions.DontRequireReceiver);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment