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: 2.5.7 c8e4beec84f7

Overview
Home Functions Search
Search:

Objects

Achievements
Alliance [Client]
Alliance [Server]
AllianceEmblem
AllianceMember
AllianceRank
AllianceTab
ArrowLine
BlockPlan
BlockPlanBlock
BlockStatistics
Boarding
Box
BspTree
Button [Client] [Client]
Button [Client] [Client]
CameraKeyFrame
Captain
CaptainIcon
CaptainProfile
CaptainSelectionItem
CargoBay
CargoLoot
CheckBox
Client
ClientSettings
Color
ColorSelectionItem
ComboBox
ContextMenu
ControlUnit
ControlUnitSeat
CraftDesign
CraftDesignSelectionItem
CraftPortrait
CraftStatsOverview
Crew
CrewBar
CrewComponent
CrewMan
CrewProfession
DebugInfo
DeletionTimer
DirectFlightPhysics
DockingClamps
DockingParent
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
GlowFX
Group
Hangar
HighResolutionTimer
Hud
HyperspaceEngine
IconSelectionItem
InputWindow
InteractionText
Inventory
InventoryItemLoot
InventoryReferenceSelectionItem
InventorySelection
InventorySelectionItem
InventoryTurret
ivec2
ivec3
ivec4
Keyboard
Label
Language
LaserFX
Line
ListBox
ListBoxEx
Loot
Mail
MapArrowLine
MapIcon
Material
Matrix
ModManager
Mouse
MultiLineTextBox
Music
NamedFormat
NumbersBar
Owner
Physics
Picture
PixelIconSelectionItem
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
ReadOnlyCrew
ReadOnlyDeletionTimer
ReadOnlyEnergySystem
ReadOnlyEngine
ReadOnlyEntity
ReadOnlyEntityTransferrer
ReadOnlyFighterAI
ReadOnlyFighterController
ReadOnlyHangar
ReadOnlyHyperspaceEngine
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
RefractionFX
Relation
SavedDesignsSelection
Scenario
ScriptUI
ScrollFrame
Sector [Client]
Sector [Server]
SectorView
Seed
Selection
SelectionItem
Server
Shield
ShipAI
ShipDatabaseEntry [Client]
ShipDatabaseEntry [Server]
ShipSystem
ShipWindow
Slider
SoundSource
Sphere
Squad
StatisticsBar
StrategyState
StructuralIntegrity
SystemUpgradeLoot
SystemUpgradeTemplate
Tab
TabbedWindow
TargetIndicator
TextBox
TextField
Thrusters
Timer
Tooltip
TooltipDisplayer
TooltipLine
TooltipRenderer
Torpedo
TorpedoAI
TorpedoLauncher
TorpedoShaft
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

addCountdownBar
addSectorProblem
addShipProblem
appTime
appTimeMs
AsteroidDescriptor
async
async
async
asyncf
asyncf
asyncf
broadcastInvokeClientFunction
calculateJumpPath
canBoard
canBuildAdvancedBlocksInCurrentEnvironment
canBuildInCurrentEnvironment
canRepairInCurrentEnvironment
CargoLootDescriptor
checkReadSecureFilename
checkWriteSecureFilename
ColorARGB
ColorHSV
ColorInt
ColorNone
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
getColorPalette
getCurrentLanguage
getGlobal
getLanguage
GetLocalizedString
getParentEntity
getParentFaction
getParentFaction
getPlayerCraft
getReadableValue
getResolution
getSavedShips
getScriptPath
getSessionId
getTrackedMissionScriptIndex
getWorkshopShips
HighestRarity
InventoryItemLootDescriptor
invokeAllianceFunction
invokeClientFunction
invokeEntityFunction
invokeEntityFunction
invokeFactionFunction
invokeSectorFunction
invokeSectorFunction
invokeServerFunction
isAllianceScript
isBehemothDLCInstalled
isBlackMarketDLCInstalled
isEntityScript
isGalaxyScript
isIntoTheRiftDLCInstalled
isPlayerScript
isSectorScript
IsValidMaterial
keycodeFromScancode
length
length2
listFilesOfDirectory
loadInternalData
LoadPlanFromFile
LoadPlanFromString
LoadTurretDesignFromFile
lookAt
LowestRarity
makeFastHash
makeHash
makeHash64
MatrixLookUp
MatrixLookUpPosition
MatrixLookUpRight
MatrixYawPitchRoll
Mods
MoneyLootDescriptor
normalize
normalize_ip
NumMaterials
onClient
onClient
onClient
onServer
onServer
onServer
ownsBehemothDLC
ownsBlackMarketDLC
ownsIntoTheRiftDLC
perspective
play3DSound
playSound
plural_t
plural_with_context_t
print
printlog
projectPoint
registerBoss
removeCountdownBar
removeDirectory
removeSectorProblem
removeShipProblem
reportError
ResourceLootDescriptor
rotate
run
run
runEntityCode
runFactionCode
runSectorCode
scale
scancodeFromKeycode
scriptPath
SectorSeed
SeedStr
serializable
setBossBarTitle
setBossHealth
setBossHealthColor
setCountdownPriority
setGlobal
setTrackedMission
setTrackThisMission
ShipDescriptor
sleep
StationDescriptor
SystemUpgradeLootDescriptor
terminate
TorpedoDescriptor
translate
trim
TurretDescriptor
TurretLootDescriptor
unregisterBoss
valid
WormholeDescriptor
WreckageDescriptor
wreckify
writeTrace

Overview
Home Functions Search
Search: