Category: Objects
    / Crew
Since engine version: 5.1 OC
SetCrewStatus
Description
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.
Syntax
bool SetCrewStatus(int player, bool into_crew);
Parameters
- player:
- Player number of the player whose crew you want to change.
- into_crew:
- trueif you want to add a clonk to the crew and- falseif you want to remove him.
Example
var nClonk = CreateObject(Clonk); nClonk->SetCrewStatus(GetOwner(), true);
This script creates a new clonk and adds it to the crew list of the owner.
      

