Lua/FleetInfo

From From the Depths Wiki
< Lua
Jump to: navigation, search

Added in version 1.945.

Properties[edit | edit source]

ID[edit | edit source]

Int32 ID (readonly)
Unique ID of the fleet.

Name[edit | edit source]

String Name (readonly)
Name of the fleet.

Flagship[edit | edit source]

FriendlyInfo Flagship (readonly)
The ship set as the fleet's flagship.

Members[edit | edit source]

FriendlyInfo[] Members (readonly)
A list of fleet members. May contain nils.

Functions[edit | edit source]

GetMemberIndex[edit | edit source]

Int32 GetMemberIndex(FriendlyInfo fi)
Find a friendly within a fleet and return its index.