CargoCapacity
(unit)
|
int
|
|
Returns the number of additional units the unit can carry
|
|
CargoSize
(unit)
|
int
|
|
Returns the current number of units the unit is carrying
|
|
GetUnitByIndex
(int-player, int-index, unitvar)
|
int
|
|
Returns true if the indexed unit of the given player exists and stores it into unitvar
|
|
GetUnitFromCargo
(unit_1, int, unit_2)
|
int
|
|
Returns true if unit_1's int'th cargo unit exists and stores it into unit_2?
|
|
GetUnitFromCell
(location, int-index, unitvar)
|
int
|
|
Returns true if there is a unit given by index (from 0 up to number of units in the cell -1) at the given location and stores it into unitvar
|
|
GetUnitsAtLocation
(location)
|
int
|
|
Returns the number of units at the given location
|
|
IsActiveDefender
(unit)
|
int
|
|
True if the unit is capable of active defense
|
|
IsBombardingUnit
(unit)
|
int
|
|
True if the unit is capable of bombarding
|
|
IsCivilian
(unit)
|
int
|
|
True if the unit is civilian
|
|
IsCleric
(unit)
|
int
|
|
True if the unit is a cleric
|
|
IsCounterBombardingUnit
(unit)
|
int
|
|
True if the unit is capable of counter bombarding
|
|
IsDiplomat
(unit)
|
int
|
|
True if the unit is a diplomat
|
|
IsFlankingUnit
(unit)
|
int
|
|
True if the unit is a flanking unit
|
|
IsSecondRowUnit
(unit)
|
int
|
|
Obsolete
|
|
IsSlaver
(unit)
|
int
|
|
True if the unit is a slaver
|
|
IsSpaceUnit
(unit)
|
int
|
|
True if the unit is capable of moving in space
|
|
IsUnitSelected
|
int
|
|
True if the player has a unit selected
|
|
IsVeteran
(unit)
|
int
|
|
Returns true if the unit has veteran status
|
|
IsWormholeProbe
(unit)
|
int
|
|
True if the unit is a wormhole probe
|
|
MaxCargoSize
(unit)
|
int
|
|
Returns the maximum number of units the unit can carry
|
|
UnitHasFlag
(unit, [ID]flag)
|
int
|
|
unimplemented - was supposed to return true if the given unit has the specified flag
|
|
UnitHasUserFlag
(unit, flag)
|
int
|
|
Returns true if the given unit has a "SET_USER_FLAG " in it's database record
|
|
UnitMovementLeft
(unit)
|
int
|
|
Returns the number of movement points left for the unit. 100 = 1 movement point left, 33 = 1 regular road movement left etc.
|
|
UnitType
(unitname)
|
int
|
|
Return the DB index of the named unit
|
|