Posted By: fp
do not pick up when ammo is full? - 09/14/07 20:04
how can i do it that the player do not pick up the ammo pack, when
"current_ammoreserve is 180"?
action ammo_pack
{
my.passable = on;
while (player == null) {wait (1);}
while (vec_dist (player.x, my.x) > 50)
{
my.pan += 3 * time_step;
wait (1);
}
snd_play (gotammo_wav, 80, 0);
ent_remove (my);
current_ammoreserve += 18;
current_ammoreserve = min(180, current_ammoreserve);
}
"current_ammoreserve is 180"?
action ammo_pack
{
my.passable = on;
while (player == null) {wait (1);}
while (vec_dist (player.x, my.x) > 50)
{
my.pan += 3 * time_step;
wait (1);
}
snd_play (gotammo_wav, 80, 0);
ent_remove (my);
current_ammoreserve += 18;
current_ammoreserve = min(180, current_ammoreserve);
}