Category: Objects / Crew
Since engine version: 1.0 OC
Adds or removes an object (usually a clonk) to or from the crew of a player. The object must have the CrewMember property set in the DefCore. This does not add the object to the permanent crew of the player, use MakeCrewMember for that.
bool SetCrewStatus(int player, bool into_crew);
- Player number of the player whose crew you want to change.
trueif you want to add a clonk to the crew and
falseif you want to remove him.
var nClonk = CreateObject(Clonk); nClonk->SetCrewStatus(GetOwner(), true);
This script creates a new clonk and adds it to the crew list of the owner.