object.enable_spawn_zone

Sets whether a Respawn Zone is enabled and able to affect spawning.

Arguments

enable

If this argument is 1, the respawn zone will be enabled; if it is 0, the respawn zone will be disabled.

Example

alias flag    = team.object[0]
alias is_away = object.number[0]

for each object with label "ctf_res_zone_away" do
   current_object.enable_spawn_zone(0)
   --
   global.team[0]   = current_object.team
   global.object[0] = global.team[0].flag
   if global.object[0].is_away == 1 then
      current_object.enable_spawn_zone(1)
   end
end

See also