GetCrew

Category: Objects / Crew
Since engine version: 1.0 OC

Description

Returns the indicated crew member of a player. For an invalid index nil is returned.

Syntax

object GetCrew(int player, int index);

Parameters

player:
Player number of the player whose crew member will be returned.
index:
Crew index of the clonk.

Example

var i=GetCrewCount(0); while (i--) Kill(GetCrew(0, i));
Kills all crew members of the first player.
See also: GetCaptain, GetCrewCount, GetCursor, GetHiRank
Sven2, 2002-05