ammo number

Posts 1–7 of 7 · Page 1 of 1
ammo number
is there a way to shot the ammo with numbers?
Quote Originally Posted by jimmynguyen3030 View Post

is there a way to shot the ammo with numbers?
Can you Explain More Better Detail?
What in the world is that supposed to mean?
like a settext is it " + self.showammo + "??
I did this yesterday, change positions to what ya want
Not really sure if you need the spawnstruct();

Code:
showAmmo()
{	
	ammoBoardBack = self createFontString( "default", 1 );
	ammoBoardBack setPoint( "TOPRIGHT", "TOPRIGHT", -90, 420);
	ammoBoardBack setShader("black", 120, 60);
	ammoBoardBack.alpha = .70;
      	
      ammoBoard = self createFontString( "default", 2.5 );
	ammoBoard setPoint( "TOPRIGHT", "TOPRIGHT", -95, 420);
	amnt = spawnstruct();
	amnt.ammo = self getWeaponAmmoClip(self getCurrentWeapon());
	ammoBoard setValue(amnt.ammo);

      stockBoard = self createFontString( "default", 2.5 );
	stockBoard setPoint( "TOPRIGHT", "TOPRIGHT", -95, 450);
	amntz = spawnstruct();
	amntz.ammo = self getWeaponAmmoStock(self getCurrentWeapon());
	stockBoard setValue(amntz.ammo);
 
      ammoBoard2 = self createFontString( "default", 2.5 );
	ammoBoard2 setPoint( "TOPRIGHT", "TOPRIGHT", -140, 420);
	ammoBoard2 setText("Ammo:");

      ammoBoard3 = self createFontString( "default", 2.5 );
	ammoBoard3 setPoint( "TOPRIGHT", "TOPRIGHT", -140, 450);
	ammoBoard3 setText("Stock:");
	
	while(1)
	{
	    amnt.ammo = self getWeaponAmmoClip(self getCurrentWeapon());
          amntz.ammo = self getWeaponAmmoStock(self getCurrentWeapon());
	    ammoBoard setValue(amnt.ammo);
          stockBoard setValue(amntz.ammo);
	    wait 0.10;
	}
}
Thanks Arasonic. good to know
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?