Lua/LuaBinding

AI's concept of what type of craft this ship is (naval, aerial, fortress, none).
### BlueprintSpawners

BlueprintSpawnerInfo[] BlueprintSpawners *(readonly)*
*Added in version 1.945.*
List of blueprint spawners on the ship.

## Functions

### GetTargetInfo

TargetInfo GetTargetInfo(Int32 mainframeIndex, Int32 targetIndex)
### GetNumberOfTargets

Int32 GetNumberOfTargets(Int32 mainframeIndex)
### GetTargetPositionInfoForPosition

TargetPositionInfo GetTargetPositionInfoForPosition(Int32 mainframeIndex, Single x, Single y, Single z)
### GetTargetPositionInfo

TargetPositionInfo GetTargetPositionInfo(Int32 mainframeIndex, Int32 targetIndex)
### GetTerrainAltitudeForPosition

Single GetTerrainAltitudeForPosition(Single x, Single y, Single z)
### GetTerrainAltitudeForPosition

Single GetTerrainAltitudeForPosition(UnityEngine.Vector3 v)
### GetTerrainAltitudeForLocalPosition

Single GetTerrainAltitudeForLocalPosition(Single x, Single y, Single z)
### GetTerrainAltitudeForLocalPosition

Single GetTerrainAltitudeForLocalPosition(UnityEngine.Vector3 v)
### RequestControl

Void RequestControl(Int32 mode, Int32 type, Single amount)
### RequestThrustControl

Void RequestThrustControl(Int32 type, Single scale)
### RequestComplexControllerStimulus

Void RequestComplexControllerStimulus(Int32 stim)
### GetAiPosition

Vector3 GetAiPosition(Int32 mainframeIndex)
### GetHealthFractionDifference

Single GetHealthFractionDifference(Single time)
### Component\_GetBlockInfo

BlockInfo Component\_GetBlockInfo(Int32 type, Int32 index)
### Component\_GetLocalPosition

Vector3i Component\_GetLocalPosition(Int32 type, Int32 index)
### Component\_GetBoolLogic

Boolean Component\_GetBoolLogic(Int32 type, Int32 index)
### Component\_SetBoolLogic

Void Component\_SetBoolLogic(Int32 type, Int32 index, Boolean affect)
### Component\_GetFloatLogic

Single Component\_GetFloatLogic(Int32 type, Int32 index)
### Component\_SetFloatLogic

Void Component\_SetFloatLogic(Int32 type, Int32 index, Single affect)
### Component\_GetIntLogic

Int32 Component\_GetIntLogic(Int32 type, Int32 index)
### Component\_SetIntLogic

Void Component\_SetIntLogic(Int32 type, Int32 index, Int32 affect)
### Component\_SetBoolLogicAll

Void Component\_SetBoolLogicAll(Int32 type, Boolean affect)
### Component\_SetFloatLogicAll

Void Component\_SetFloatLogicAll(Int32 type, Single affect)
### Component\_SetIntLogicAll

Void Component\_SetIntLogicAll(Int32 type, Int32 affect)
### AimWeaponInDirection

Int32 AimWeaponInDirection(Int32 i, Single x, Single y, Single z, Int32 slot)
### GetWeaponCountOnTurretOrSpinner

Int32 GetWeaponCountOnTurretOrSpinner(Int32 turretSpinnerIndex)
### GetWeaponInfoOnTurretOrSpinner

WeaponInfo GetWeaponInfoOnTurretOrSpinner(Int32 turretSpinnerIndex, Int32 i)
### AimWeaponInDirectionOnTurretOrSpinner

Int32 AimWeaponInDirectionOnTurretOrSpinner(Int32 turretSpinnerIndex, Int32 i, Single x, Single y, Single z, Int32 slot)
### FireWeaponOnTurretOrSpinner

Boolean FireWeaponOnTurretOrSpinner(Int32 turretSpinnerIndex, Int32 i, Int32 slot)
### \_GetWeaponInfo

WeaponInfo \_GetWeaponInfo(AllConstruct C, Int32 i)
### \_AimWeaponInDirection

Int32 \_AimWeaponInDirection(AllConstruct C, Int32 i, Single x, Single y, Single z, Int32 slot)
### \_FireWeapon

Boolean \_FireWeapon(AllConstruct C, Int32 i, Int32 slot)
### Maths\_AngleBetweenVectors

Single Maths\_AngleBetweenVectors(Single v1x, Single v1y, Single v1z, Single v2x, Single v2y, Single v2z)
### Maths\_AngleBetweenVectors

Single Maths\_AngleBetweenVectors(UnityEngine.Vector3 v1, UnityEngine.Vector3 v2)
### QuaternionToEulerAngles

Vector3 QuaternionToEulerAngles(UnityEngine.Quaternion q)
### Maths\_CreateQuaternion

Quaternion Maths\_CreateQuaternion(UnityEngine.Vector3 forwards, UnityEngine.Vector3 up)
### Maths\_CreateVector3

Vector3 Maths\_CreateVector3(Single x, Single y, Single z)
### Maths\_RotateVector3

Vector3 Maths\_RotateVector3(UnityEngine.Vector3 v, UnityEngine.Quaternion r)
### GetNumberOfWarnings

Int32 GetNumberOfWarnings(Int32 mainframeIndex)
### GetMissileWarning

MissileWarningInfo GetMissileWarning(Int32 mainframeIndex, Int32 missileIndex)
### GetLuaControlledMissileCount

Int32 GetLuaControlledMissileCount(Int32 luaTransceiverIndex)
### GetLuaTransceiverInfo

BlockInfo GetLuaTransceiverInfo(Int32 luaTransceiverIndex)
### GetLuaControlledMissileInfo

MissileWarningInfo GetLuaControlledMissileInfo(Int32 luaTransceiverIndex, Int32 missileIndex)
### SetLuaControlledMissileAimPoint

Void SetLuaControlledMissileAimPoint(Int32 luaTransceiverIndex, Int32 missileIndex, Single x, Single y, Single z)
### DetonateLuaControlledMissile

Void DetonateLuaControlledMissile(Int32 luaTransceiverIndex, Int32 missileIndex)
### IsLuaControlledMissileAnInterceptor

Boolean IsLuaControlledMissileAnInterceptor(Int32 luaTransceiverIndex, Int32 missileIndex)
### SetLuaControlledMissileInterceptorTarget

Void SetLuaControlledMissileInterceptorTarget(Int32 luaTransceiverIndex, Int32 missileIndex, Int32 mainframeIndex, Int32 targetIndex)
### SetLuaControlledMissileInterceptorStandardGuidanceOnOff

Void SetLuaControlledMissileInterceptorStandardGuidanceOnOff(Int32 luaTransceiverIndex, Int32 missileIndex, Boolean onOff)
### SetSpinnerSpeedFactor

Void SetSpinnerSpeedFactor(Int32 index, Single fraction)
### SetSpinnerPowerDrive

Void SetSpinnerPowerDrive(Int32 index, Single drive)
### SetDedicatedHelispinnerUpFraction

Void SetDedicatedHelispinnerUpFraction(Int32 index, Single up)
### SetSpinnerRotationAngle

Void SetSpinnerRotationAngle(Int32 index, Single angle)
### SetSpinnerContinuousSpeed

Void SetSpinnerContinuousSpeed(Int32 index, Single speed)
### SetSpinnerInstaSpin

Void SetSpinnerInstaSpin(Int32 index, Single speed)
### IsSpinnerDedicatedHelispinner

Boolean IsSpinnerDedicatedHelispinner(Int32 index)
### GetFriendlyInfo

FriendlyInfo GetFriendlyInfo(Int32 index)
### GetFriendlyInfoById

FriendlyInfo GetFriendlyInfoById(Int32 id)
### MoveFortress

Void MoveFortress(UnityEngine.Vector3 direction)
*Added in version 1.945.*
Move fortress in any direction. Limited to 1 meter.
### GetMissileInfo

MissileInfo GetMissileInfo(Int32 luaTransceiverIndex, Int32 missileIndex)
**This part of the API is unstable and subject to change. Use with caution.** (Since 21:48, 29 March 2016 (UTC))
*Added in version 1.945.*
Get advanced missile bindings.