Stopping looping threads
Posted: Thu Jul 11, 2002 6:35 pm
Can someone please, please, tell me how to stop the random explosions when my tank is blown up? I need a way to shut off the thread loops when the first objective bomb ($bomb1) explodes. If I knew how this "while" statement worked, I could probably figure it out. What does that "!" thing do?
// --------------------------------------------
// "Bomb 1 Exploded"
// --------------------------------------------
bomb1_exploded local.bomb1:
while (local.bomb1.exploded != 1)
wait .1
iprintlnbold_noloc "Axis have destroyed the Sherman tank!"
$random_tankfire remove
$lulubelle_origin remove
end
I tryed this inside the loops:
if (local.bomb1.exploded != 1)
{
end
}
But, it didn't work.
I also tried assigning a local (local.tepos = 1) number to $bomb1 exploded thread and using an "if" statememnt with that, but that also didn't work.
// --------------------------------------------
// "Bomb 1 Exploded"
// --------------------------------------------
bomb1_exploded local.bomb1:
while (local.bomb1.exploded != 1)
wait .1
iprintlnbold_noloc "Axis have destroyed the Sherman tank!"
$random_tankfire remove
$lulubelle_origin remove
end
I tryed this inside the loops:
if (local.bomb1.exploded != 1)
{
end
}
But, it didn't work.
I also tried assigning a local (local.tepos = 1) number to $bomb1 exploded thread and using an "if" statememnt with that, but that also didn't work.