Avorion Script API Documentation

ShipSystem

function ShipSystem(var id)

Parameters

id The id of the entity this component belongs to, or the entity itself, must be an id of an existing entity or nil for the entity in the current script context

Returns

A new instance of ShipSystem

property Entity entity[read-only]
property uuid entityId[read-only]
property unsigned int maxSlots[read-only]
property unsigned int numSlots[read-only]
property unsigned int numUpgrades[read-only]

function unsigned int addUpgrade(SystemUpgradeTemplate upgrade, bool permanent)

function var clear()

Returns

nothing

function SystemUpgradeTemplate getUpgrade(unsigned int index)

function double getVolumeForSlot(unsigned int slot)

function bool isPermanent(unsigned int slot)

function var removeUpgrade(unsigned int slot)

Returns

nothing

function var setNumSlots(unsigned int in)

Returns

nothing

function var setUpgrade(SystemUpgradeTemplate upgrade, unsigned int slot, bool permanent)

Returns

nothing

function var swap(unsigned int slotA, unsigned int slotB)

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: 1.0 r22021 59065310fc1a