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.
Related Pages

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.