remove spawn

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

remove spawn

Post 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?
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

u can do disablespawn instead

disablespawn

forbids spawning from this spawnpoint


enablespawn

allows spawning from this spawnpoint


$spawn1 disablespawn
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

cool, thanks
Post Reply