Category: Objects
/ Crew
Since engine version: 1.0 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:
true
if you want to add a clonk to the crew andfalse
if 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.