To remove entities, your must know their x y z coordinates. The script routine to remove them is very simple:
Code: Select all
delete
{
origin "-864 -1966 318"
}
New entities are added normally:
For the TWO
Code: Select all
create
{
scriptName "snatchhq_obj"
classname "team_WOLF_objective"
targetname "snatchhq_obj"
origin "-824 -1966 318" // z = CC_FILTER_ALLIES(2) | CC_FILTER_SPAWNS(4)
spawnflags 2 // TEAM_ALLIES(2)
}
Code: Select all
create
{
scriptName "snatchhq_spawn1"
classname "team_CTF_bluespawn"
targetname "snatchhq_spawn"
origin "-896 -1792 198"
spawnflags 2 // TEAM_ALLIES
}
Code: Select all
snatchhq_obj
{
spawn
{
set
{
//these have to be set inside the spawn{} function, not create{}
description "Forest House Spawn"
message "Forest House Spawn"
}
wait 50
setstate snatchhq_obj invisible
setstate snatchhq_spawn invisible
}
trigger on
{
setstate snatchhq_obj default
setstate snatchhq_spawn default
}
trigger off
{
setstate snatchhq_obj invisible
setstate snatchhq_spawn invisible
}
}
Code: Select all
// mortis
wait 50
trigger snatchhq_obj on
wm_announce "The Allied Forest House Spawn has been enabled!"
and
Code: Select all
wait 50
trigger snatchhq_obj off
wm_announce "The Allied Forest House Spawn has been disabled!"