Wait a minute I think I'm on to something but with a glitch.
This code below dose half of what I was looking for, it hides weapon only after I buy it and exit the weapon shoppe and then I enter back in to weapon shoppe, bought weapon is not active, I can even collect ammo and when exiting weapon shoppe I have to press 1-3 to bring the weapon in to actions.
Code it activated only when in contact with entity that has code load_level
switch(t_shooter_weapon)//
{
case 0://if its 0
if (t_shooter_weapon == 0)// check if any weapons selected
t_shooter_weapon = 0; // no weapons equipped
break;
case 1://if its 1
if (t_shooter_weapon == 1)// check if any weapons selected
t_shooter_weapon = 0; // if weapon selected do not equip in this level
break;
case 2://if its 2
if (t_shooter_weapon == 2) // check if any weapons selected
t_shooter_weapon = 0; //if weapon selected do not equip in this level
break;
case 3://if its 3
if (t_shooter_weapon == 3) // check if any weapons selected
t_shooter_weapon = 0; //if weapon selected do not equip in this level
break;
}
Glitch is that I can still equip weapons in weapon shoppe level by pressing 1-3.
So my next question is how do I code this:
if key_pressed 1
ignore key_pressed 1 just for this level