Ship (Data Type)¶
- Table of contents
- Ship (Data Type)
- Description
- Members
- Methods
Description¶
This DataType includes information and performs actions that are exclusive to ships
Please note that many members of the 'ship' datatype will be unavailable until you access certain aspects of your ship. For example, to get the CargoCapacity, you'll need to open your cargo hold at least once. Ditto for the items in your drone bay. Also, note that many times you have to do this at least once every time you change 'states' or go from being in a station to being in space, or vice-versa. Of course, since you can't open your drone bay while in space, the drone bay attributes will not be available unless you're in a station.
Members¶
-
float64
Capacitor
- Current capacitor level of your ship
-
string
Name
- Ship's name
- item
ToItem
- entity
ToEntity
-
int64
ID
-
Ship Stats & Ship Status
-
float64
MaxCapacitor
-
float64
CapacitorPct
-
float64
Shield
-
float64
MaxShield
-
float64
ShieldPct
-
float64
Armor
-
float64
MaxArmor
-
float64
ArmorPct
-
float64
Structure
-
float64
MaxStructure
-
float64
StructurePct
-
float64
CPULoad
-
float64
CPUOutput
-
float64
PowerLoad
-
float64
PowerOutput
-
double
TurretSlotsLeft
-
double
HeatCapacityHigh
-
double
HeatCapacityMedium
-
double
HeatCapacityLow
-
double
RigSlots
-
double
RigSlotsLeft
-
double
ScanSpeed
-
double
MaxTargetRange
-
double
LowSlots
-
double
MediumSlots
-
double
HighSlots
-
double
Radius
-
double
TechLevel
-
double
HeatLow
-
double
HeatMedium
-
double
HeatHigh
-
double
MaxVelocity
-
double
ScanResolution
-
double
ScanRadarStrength
-
double
Agility
-
double
LauncherSlotsLeft
-
double
CapacitorRechargeRate
-
double
ShieldRechargeRate
-
double
SignatureRadius
-
double
WarpSpeedMultiplier
-
int
MaxLockedTargets
- See also the 'MaxLockedTargets' member of the character datatype for the character's restrictions on locked targets.
-
float64
- Cargo Related
- Drone (Drone Bay) Related
-
Requires Ship to be in space
- The following require !Me.InStation
- module
Module<MW_SINGLEBRACKET>SlotName</MW_SINGLEBRACKET>
- SlotName Options:
Methods¶
GetCargo<MW_SINGLEBRACKET><index:item></MW_SINGLEBRACKET>
GetDrones<MW_SINGLEBRACKET><index:item></MW_SINGLEBRACKET>
GetModules<MW_SINGLEBRACKET><index:module></MW_SINGLEBRACKET>
-
LaunchAllDrones
- To utilize the drone methods properly, your drones must be UNSTACKED in your drone bay. To do this, you can either SHIFT-DRAG the drones to your drone bay and select a quantity of 1, or you can go in space, launch all your drones, and then recall them to your drone bay. When drones return to your drone bay, they always go back 'unstacked'.
Open
OpenCargo
GetOreHoldCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
GetFuelHoldCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
GetGasHoldCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
GetMineralHoldCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
GetSalvageHoldCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
GetIndustrialShipHoldCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
GetAmmoHoldCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
GetMaintenanceHoldCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
-
GetCorpHangarsCargo<MW_SINGLEBRACKET>index:item</MW_SINGLEBRACKET>
(retrieves ALL items) -
GetCorpHangarsCargo<MW_SINGLEBRACKET>index:item, "FOLDERNAME"</MW_SINGLEBRACKET>
(retrieve items from a particular folder) -
GetCorpHangarsCargo<MW_SINGLEBRACKET>index:item, index:string</MW_SINGLEBRACKET>
(retrieve items from all folders named in the index:string)
Possible Folder Names:
Corporation Folder 1
Corporation Folder 2
Corporation Folder 3
Corporation Folder 4
Corporation Folder 5
Corporation Folder 6
Corporation Folder 7