object.delete

Delete this object from the game world.

Example

for each object with label "team_only" do
   if game.teams_enabled == 0 then
      current_object.delete()
   end
end
for each object with label "ffa_only" do
   if game.teams_enabled != 0 then
      current_object.delete()
   end
end

Notes

See also