Avorion Script API Documentation

ReadOnlyShipAI

function ReadOnlyShipAI(var id)

Parameters

id The id of the entity, must be an index of an existing entity or nil for the entity in the current script context

Returns

A new instance of ReadOnlyShipAI

property uuid attackedEntity[read-only]
property Entity entity[read-only]
property uuid entityId[read-only]
property vec3 flyTarget[read-only]
property bool isAttackingSomething[read-only]
property bool isBusy[read-only]
property bool isStuck[read-only]
property int state[read-only]

function bool enemyFightersPresent()

function bool enemyShipsPresent(var countCivilEnemies)

function Entity... getEnemies()

function uuid... getRegisteredEnemyEntities()

function int... getRegisteredEnemyFactions()

function uuid... getRegisteredFriendEntities()

function int... getRegisteredFriendFactions()

function bool isEnemy(Entity other)

function bool isRegisteredEnemy(Entity other)

function bool isRegisteredFriend(Entity other)

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