SetCrewEnabled

Category: Objects / Crew
Since engine version: 1.0 OC

Description

Activates or deactivates crew members. Deactivated crew members can no longer be selected for control by a player. If all of a player's crew members are deactivated the player can not control any clonks but he is still not eliminated. Only valid for true crew member objects. Deactivated crew members are automatically deselected from player control.

Syntax

void SetCrewEnabled(bool enabled);

Parameter

enabled:
Specifies whether the crew member is to be activated or deactivated.

Example

GetCursor()->SetCrewEnabled(false);
Deactivates the selected clonk of the first player.
See also: GetCrewEnabled, MakeCrewMember, SelectCrew
Sven2, 2002-04