Function; AddSubSystemAbility - HWRM/KarosGraveyard GitHub Wiki
AddSubSystemAbility(<rSubSystem>, <sAbility>, <?>, <sTarget>, <fRadius>)
This function is called within a .subs file. It grants the ability specified with <sAbility> to the ships defined with <sTarget>.
AddSubSystemAbility(NewSubSystemType, "Cloak", 1, "ThisShipOnly", 0)
<rSubSystem>: Reference to the subsystem. This should be NewSubSystemType.
<sAbility>: Specifies the ability that is granted. "Cloak", "Hyperspace" and "HyperspaceInhibitor" are available. "DefenseField" might be available as well. Note that the names of the abilities are not the same as in addAbility.
<?>: Possibly an active/inactive boolean flag.
<sTarget>: Specifies which ships within the fRadius receive the specified ability. Possible values are "OwnShipsWithinRadius" and "ThisShipOnly", both used within the stock HW2 subsystems. Other definitions might be available.
<fRadius>: The radius within which any ship allowed by the <sTarget> setting is granted the specified ability.
Updated Formatting? Initial
Updated for HWRM? Initial