multiply shootforce by fire1 button held?
By: a guest | Mar 19th, 2010 | Syntax:
JavaScript | Size: 0.26 KB | Hits: 68 | Expires: Never
function Update ()
{
if (Input.GetButtonDown ("Fire2")) // get buttonstate, fire bullet on down.
{
if (audio.pitch == 1)
{
audio.pitch = 0.6;
}
else
{
audio.pitch = 1;
}
}
}