Page 1 of 1

remove spawn

Posted: Tue Jul 19, 2005 9:17 am
by ViPER
what am i doing wrong? I have some spawns (that work) and i gave them target names like this -

local.allied1 = spawn info_player_allied "targetname" "allfs1"
local.allied1.origin = ( 643 3531 32 )
local.allied1.angle = -120
local.allied2 = spawn info_player_allied "targetname" "allfs2"
local.allied2.origin = ( 1478 1265 88 )
local.allied2.angle = 50
local.allied3 = spawn info_player_allied "targetname" "allfs3"
local.allied3.origin = ( -1163 2885 -70 )
local.allied3.angle = 0
local.allied4 = spawn info_player_allied "targetname" "allfs4"
local.allied4.origin = ( -1668 3366 58 )
local.allied4.angle = 180


then i try to remove them later like this -

BOOM_remove_allied_spawns:
iprintln "Allied transport has been destroyed"
$allfs1 remove
$allfs2 remove
$allfs3 remove
$allfs4 remove
iprintln "Allied forward spawns have been removed"
end


the thread runs but the spawns are still there?? what is wrong?

Posted: Tue Jul 19, 2005 11:17 am
by Elgan
u can do disablespawn instead

disablespawn

forbids spawning from this spawnpoint


enablespawn

allows spawning from this spawnpoint


$spawn1 disablespawn

Posted: Tue Jul 19, 2005 4:26 pm
by ViPER
cool, thanks