Avorion Script API Documentation

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

Overview
Home Functions Search
Search:

Objects

Achievements
Alliance [Client]
Alliance [Server]
AllianceMember
AllianceRank
AllianceTab
ArrowLine
BlockPlan
BlockPlanBlock
BlockStatistics
Boarding
Box
BspTree
Button [Client] [Client]
Button [Client] [Client]
CargoBay
CheckBox
ClientSettings
Color
ComboBox
ControlUnit
ControlUnitSeat
CraftDesign
CraftDesignSelectionItem
CraftPortrait
Crew
CrewMan
CrewProfession
DebugInfo
DeletionTimer
DirectFlightPhysics
DockingPositions
Durability
dvec2
dvec3
dvec4
EnergySystem
Engine
Entity
EntityDescriptor
EntityIcon
EntityTooltip
EntityTransferrer
Faction [Client]
Faction [Server]
FighterAI
FighterController
FighterTemplate
Format
Frame
Galaxy [Client]
Galaxy [Server]
GalaxyMap
GameInput
GameSettings
Hangar
HighResolutionTimer
Hud
InputWindow
InteractionText
Inventory
InventoryReferenceSelectionItem
InventorySelection
InventorySelectionItem
InventoryTurret
ivec2
ivec3
ivec4
Keyboard
Label
Language
LaserFX
Line
ListBox
ListBoxEx
Loot
Mail
MapArrowLine
Material
Matrix
ModManager
Mouse
MultiLineTextBox
Music
NamedFormat
NumbersBar
Owner
Physics
Picture
Plan
PlanBspTree
PlanDisplayer
Planet
PlanetSpecifics
PlanGenerationStage
PlanMesh
PlanPart
PlanStyle
Player [Client]
Player [Server]
PlayerId
PlayerWindow
PluralForm
Profiler
ProgressBar
QuadTree
Random
Rarity
Ray
ReadOnlyBoarding
ReadOnlyBspTree
ReadOnlyCargoBay
ReadOnlyControlUnit
ReadOnlyDeletionTimer
ReadOnlyEnergySystem
ReadOnlyEngine
ReadOnlyEntity
ReadOnlyEntityTransferrer
ReadOnlyFighterAI
ReadOnlyFighterController
ReadOnlyHangar
ReadOnlyIcon
ReadOnlyInteractionText
ReadOnlyLoot
ReadOnlyOwner
ReadOnlyPhysics
ReadOnlyPlan
ReadOnlyPlanMesh
ReadOnlyScriptUI
ReadOnlySector
ReadOnlyShipAI
ReadOnlyShipSystem
ReadOnlyTooltip
ReadOnlyTorpedoAI [Server] [Client] [Server] [Client]
ReadOnlyTorpedoAI [Server] [Client] [Server] [Client]
ReadOnlyTorpedoLauncher
ReadOnlyTurretBases
ReadOnlyTurretController
ReadOnlyVelocity
ReadOnlyWeapons
ReadOnlyWormHole
ReadOnlyWreckageCreator
Rect
Relation
SavedDesignsSelection
ScriptUI
ScrollFrame
Sector [Client]
Sector [Server]
SectorView
Seed
Selection
SelectionItem
Server
Shield
ShipAI
ShipSystem
ShipWindow
Slider
SoundSource
Sphere
StatisticsBar
SystemUpgradeLoot
SystemUpgradeTemplate
Tab
TabbedWindow
TextBox
TextField
Thrusters
Timer
Tooltip
TooltipLine
TooltipRenderer
Torpedo
TorpedoAI
TorpedoLauncher
TorpedoTemplate
TradingGood
Tree
Turret
TurretAI
TurretBases
TurretController
TurretDesign
TurretDesignPart
TurretDesignSelectionItem
TurretTemplate
UIArbitraryHorizontalSplitter
UIArbitraryVerticalSplitter
UIContainer
UIElement
UIGridSplitter
UIHorizontalLister
UIHorizontalMultiSplitter
UIHorizontalSplitter
UIOrganizer
UIRect
UIRenderer
UIVerticalLister
UIVerticalMultiSplitter
UIVerticalSplitter
UsableInventoryItem
Uuid
ValueComboBox
VanillaInventoryItem
vec2
vec3
vec4
Velocity
Version
Weapon
Weapons
Window
WormHole
WreckageCreator

Functions

addShipProblem
appTime
appTimeMs
AsteroidDescriptor
async
async
async
broadcastInvokeClientFunction
CargoLootDescriptor
checkReadSecureFilename
checkWriteSecureFilename
ColorARGB
ColorHSV
ColorInt
ColorPalette
ColorRGB
copy
createDirectory
createMonetaryString
CreateTemplateFromTurret
credits
CrewLootDescriptor
cross
deferredCallback
deleteFile
displayChatMessage
displayMissionAccomplishedText
displaySpeechBubble
distance
distance2
dot
drawBorder
drawDebugBox
drawDebugLine
drawDebugSphere
drawFighterTooltip
drawRect
drawText
drawTextRect
drawTurretTooltip
DroneDescriptor
eprint
FighterDescriptor
GameSeed
GameVersion
GeneratePlanFromStyle
getCurrentLanguage
getGlobal
GetLocalizedString
getParentEntity
getParentFaction
getParentFaction
getPlayerCraft
getReadableValue
getResolution
getSavedShips
getScriptPath
getTrackedMissionScriptIndex
getWorkshopShips
HighestRarity
invokeClientFunction
invokeEntityFunction
invokeEntityFunction
invokeFactionFunction
invokeSectorFunction
invokeSectorFunction
invokeServerFunction
IsValidMaterial
length
length2
listFilesOfDirectory
LoadPlanFromFile
LoadTurretDesignFromFile
lookAt
LowestRarity
makeFastHash
makeHash
makeHash64
MatrixLookUp
MatrixLookUpPosition
MatrixLookUpRight
MatrixYawPitchRoll
Mods
MoneyLootDescriptor
normalize
normalize_ip
NumMaterials
onClient
onClient
onClient
onServer
onServer
onServer
perspective
play3DSound
playSound
plural_t
plural_with_context_t
print
printlog
projectPoint
registerBoss
removeDirectory
removeShipProblem
reportError
ResourceLootDescriptor
rotate
run
run
runEntityCode
runFactionCode
runSectorCode
scale
scriptPath
SectorSeed
SeedStr
setBossHealth
setBossHealthColor
setGlobal
setTrackedMission
setTrackThisMission
ShipDescriptor
sleep
StationDescriptor
SystemUpgradeLootDescriptor
terminate
TorpedoDescriptor
translate
trim
TurretDescriptor
TurretLootDescriptor
unregisterBoss
valid
WormholeDescriptor
WreckageDescriptor
writeTrace

Overview
Home Functions Search
Search: