Share Pastebin
Guest
Public paste!

multiply shootforce by fire1 button held?

By: a guest | Mar 19th, 2010 | Syntax: JavaScript | Size: 0.26 KB | Hits: 68 | Expires: Never
Copy text to clipboard
  1. function Update ()
  2. {
  3.     if (Input.GetButtonDown ("Fire2")) // get buttonstate, fire bullet on down.
  4.                 {      
  5.                         if (audio.pitch == 1)
  6.  
  7.                                 {
  8.                         audio.pitch = 0.6;
  9.                         }
  10.                 else
  11.                                 {
  12.                         audio.pitch = 1;
  13.                                 }
  14.                 }
  15. }