MakeCrewMember

Category: Objects / Crew
Since engine version: 1.0 OC

Description

Adds an object (usually a clonk) to the crew of a player. The object must have the CrewMember property set in the DefCore.
Returns true if the object was added successfully.

Syntax

bool MakeCrewMember(int player);

Parameter

player:
Player to whose crew you want to add a member.

Example

var nClonk = CreateObject(Clonk);
nClonk->MakeCrewMember(GetOwner());
    
This script creates a new clonk and adds it to the crew list of the owner.
See also: CrewMember, GetCrew, GrabObjectInfo, OCF_CrewMember, SetCrewStatus
PeterW, 2001-12