Avorion Script API Documentation

Mail

function Mail()

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

Returns

A new instance of Mail

property bool empty[read-only]
property string id
A simple string that can be used by scripts or missions to identify mails. Isn't checked for uniqueness, it's only a small helper property.
property int money
property unsigned int numItems[read-only]
property bool read
property PlayerId receiver[write-only]
property Format sender
property Format text

function var addItem(InventoryItem item)

Returns

nothing

function var addTurret(TurretTemplate turret)

Returns

nothing

function var addTurretBlueprint(TurretTemplate turret)

Returns

nothing

function InventoryItem getItem(unsigned int index)

function unsigned int... getResources()

function bool hasAttachments()

function var removeItem(unsigned int index)

Returns

nothing

function var setResources()

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