EliminatePlayer

Category: Player
Since engine version: 1.0 OC

Description

Eliminates a player. The round counts as 'lost' for all eliminated players.

Syntax

bool EliminatePlayer(int player, bool remove_direct);

Parameters

player:
Number of the player to be eliminated.
remove_direct:
Eliminates the player as fast as possible, skipping the usual waiting time (in which the player is e.g. still counted for GetPlayerCount). There is nonetheless a delay of a few frames.

Example

if (!FindObject(Find_ID(Flag), Find_Owner(0))) EliminatePlayer(0);
The first player is eliminated if he has no more flags.
See also: GameOver
Sven2, 2001-11
Clonkonaut, 2015-11