Avorion Script API Documentation

Crew

function Crew()

This is the default constructor of Crew. No further arguments are required.

Returns

A new instance of Crew

property int attackers[read-only]
property int autoAssignCrew[read-only]
property int engineers[read-only]
property int gunners[read-only]
property unsigned int maxSize
property int mechanics[read-only]
property int miners[read-only]
property int pilots[read-only]
property int security[read-only]
property unsigned int size[read-only]
property int unemployed[read-only]

function var add(int amount, CrewMan crewman)

Returns

nothing

function var addPassenger(Captain captain)

Returns

nothing

function Crew buildIdealCrew(BlockPlan [or nil] plan)

function Crew buildMinimumCrew(BlockPlan [or nil] plan)

function var changeEmployment(int amount, int profession)

Returns

nothing

function var clear()

Returns

nothing

function var clearPassengers()

Returns

nothing

function Captain getCaptain()

function table<CrewMan, unsigned int> getMembers()

function int getMembersByProfession(int profession)

function int getNumMembers(CrewMan crewman)

function table<CrewProfession, unsigned int> getNumMembersByProfession()

function Captain... getPassengers()

function table<CrewProfession, float> getWorkforce()

function bool hasCaptain()

function var kill(int num)

Returns

nothing

function var remove(int amount, CrewMan crewman)

Returns

nothing

function var removeByProfession(int amount, int crewProfessionType)

Returns

nothing

function var removePassenger(unsigned int index)

Returns

nothing

function var setCaptain(Captain [or nil] captain)

Returns

nothing

Overview
Home Functions Search
Search:

This is the official documentation for the scripting API of Avorion. This documentation is automatically generated and not necessarily complete. Depending on the context in which functions exist, some documentation such as descriptions, return values or variable names or types may be missing.

Work in Progress. Documentation of Avorion Version: 2.5.7 c8e4beec84f7