Please help!
@sparkzbarca : C++ isn’t even supported on Unity3D. . . . ( Minus plugins/shaders/etc )
@angyfkul : What script are you using to fire in the first place? Try adding a “cooler”. . . Basically, as follows:
var fireCooler : float = 0.5 ;
function Update ( )
{
if ( fireCooler > 0 ) // If has not been 0.5 seconds since last shot
{
fireCooler -= 1 * Time.deltaTime ; // Wait until coolermax reached
}else{
Shoot( ) ; // Your shoot function
fireCooler = 0.5 ; // Reset Cooler
}
}
Obviously, you will need to make a few adjustments, but, this is the “basis” of what you need .
Anywho, this will make it so that the player is only allowed to shoot once every 0.5 ( half second ). Adjust to fit your needs.