UserFunction; addSOBGroup - HWRM/KarosGraveyard Wiki

addSOBGroup(<sSobName>, <sShipName1>, <sShipName2>, ... , <sShipNameN>)

Description

Creates the named sobgroup and adds the listed ships to it.
A shortcut for the createSOBGroup and addToSOBGroup functions. Uses the same syntax as the addPath function.

Example

addSOBGroup("MyNewSOBGroup", "MyScout1", "MyScout2", "MyScout3", "MyScout4")

Arguments

<sSobName>: the name of the sobgroup to create and add ships to.
<sShipName1> to <sShipNameN>: the names of the ships to add to <sSobName>.

Definition

function addSOBGroup(sSobName, ...)
    createSOBGroup(sSobName)
    for i, iCount in arg do
        addToSOBGroup(iCount, sSobName)
    end
end

Related Pages

User-created Functions

createSOBGroup

addToSOBGroup

addPath

Comments

Nice and useful.

--SunTzu (2006-05-19 04:22:59)

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial