Stopping threads
Posted: Thu Jun 26, 2003 4:55 am
Is it possible to stop a thread midway?
I want to the cancel the allies_win_hold and the axis_win_hold from completing, but not permanently.
So far I have this:
Also:
The command locprint, is it possible to cancel this also? So another message replaces it?
I want to the cancel the allies_win_hold and the axis_win_hold from completing, but not permanently.
So far I have this:
Code: Select all
target_building_touched:
$control_trigger waittill trigger
local.player = parm.other
if(local.player.dmteam == "allies")
{
iprintln "The US holds the target building."
$allies_spawn disablespawn
$allies_spawn_target enablespawn
$axis_spawn enablespawn
$axis_spawn_target disablespawn
$us_indicator show
$iraq_indicator hide
thread allies_win_hold
axis_win_hold delete // i've tried stop also
}
if(local.player.dmteam == "axis")
{
iprintln "The Iraqis holds the target building."
$allies_spawn enablespawn
$allies_spawn_target disablespawn
$axis_spawn disablespawn
$axis_spawn_target enablespawn
$us_indicator hide
$iraq_indicator show
thread axis_win_hold
allies_win_hold delete // i've tried stop also
}
endThe command locprint, is it possible to cancel this also? So another message replaces it?