Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
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:

There is one comment on this page. [Display comment]

:: ::