Author Topic: Reload animation after firing a certain amount of ammo?  (Read 2254 times)

I want a script that makes u have to reload with r :D

R isn't bound to anything (by default) as far as I know. It would be possible to make reload the Jet button (right mouse) or Use Paints (E).

Don't do that :(

What if i wana jet and not reload :(

Find the yourweapon::onFire( %this, %obj, %slot )
Code: [Select]
if(%obj.aamo == 0)
{
      %obj.setImageAmmo(%slot,%ammo);//I don't know if this works, have fun.
return;
}
else
{
      %obj.ammo--;
}



So how would you package that? Like this?

Code: [Select]
function yourweaponImage::onFire(%this,%obj,%slot)
{
if(%obj.ammo == 0)
{
      %obj.setImageAmmo(%slot,%ammo);
return;
}
else
{
      %obj.ammo--;
}
}

Edit: Oh sorry, I was missing some brackets
« Last Edit: August 08, 2008, 11:53:24 AM by Muffinmix »