Function; SobGroup_FillShipsByType - HWRM/KarosGraveyard GitHub Wiki

SobGroup_FillShipsByType(<sSobGroupToFillName>, <sSobGroupName>, <sShipTypeName>)

Description

Fills <sSobGroupToFillName> with all ships of type <sShipTypeName> from <sSobGroupName>. Inactive ships (e.g., ships that are docked or in hyperspace) are taken into account by the function.
Note: inactive ships are not considered if "Player_Ships" is used, because it contains only active ships. -SunTzu

Example

SobGroup_FillShipsByType( "tempSobGroup", "Attackers", "Hgn_Interceptor" )

Arguments

<sSobGroupToFillName>: name of the sobGroup in which ships will be returned.
<sSobgroupName>: name of the sobGroup whose ships are considered.
<sShipTypeName>: type of the ships to be returned.

Related Pages

Function Reference

SCAR (SCripting at Relic) Reference

Comments

Previous error re inactive/active ships now corrected. Player_Ships won't fool me again >:)

--SunTzu (2006-01-30 18:04:47)

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial