Avorion Script API Documentation

DockingPositions

function DockingPositions(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 DockingPositions

property bool alwaysDocked
property bool docksEnabled
property int numDockingPositions[read-only]

function var deleteRemovableObstacles()

Returns

nothing

function var getDockingPosition(int i)

function table_t getDockingPositions()

function var getFreeDock(Entity [or nil] exception)

function bool inLightArea(Entity other, var dockIndex)

function bool isInDockingArea(Entity other)

function bool isLightLineFree(int i, Entity [or nil] exception)

function bool isPulling(Entity other)

function bool isPushing(Entity other)

function bool isTractoring(Entity other)

function bool startPulling(Entity other, var dockIndex)

function bool startPushing(Entity other, var dockIndex)

function var stopPulling(Entity other)

Returns

nothing

function var stopPushing(Entity other)

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