hey,
i am making this game and i have an ammo count
i want to make it so when it reaches 00 you cant shoot, until you pick up ammo.
any ideas?? lol
if(Ammo.textNumber==00)
{
//nothing happens here
}
else if(Ammo.textNumber=<00) //Credit to fredopedia
{
Put your shoot Script here
}
PooAs wrote:else if(pistol_ammonumber.textNumber=<00)
if(pistol_ammonumber.textNumber>0)
{
CreateActor("pistol_bullet_right", "bullet pistol right", "(none)", "(none)", 75, -5, false);
CreateActor("gun_bang", "explod2_00000", "(none)", "(none)", 80, -15, false);
pistol_ammonumber.textNumber-=1;
}
Users browsing this forum: No registered users and 1 guest