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
If the context object doesn't exist, then this function does nothing. It's safe to call this function without checking whether the object variable you're using is no_object.
Deleting a player's current biped will cause them to instantaneously respawn, without deducting from their pool of lives in limited-life game variants. Continuously deleting their biped over a span of time will cause the screen to hard-cut to black for them, with no HUD widgets visible and no game sounds audible besides some announcer voiceovers.
If one biped is assassinating another, deleting the victim will not interrupt the killer's assassination animation.