Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
Most recent edit on 2006-08-28 05:23:39 by SunTzu [fixed formatting bug]

Additions:
AddSubSystemAbility(<rSubSystem>, <sAbility>, <?>, <sTarget>, <fRadius>)

Deletions:
AddSubSystemAbility(, , , )



Edited on 2006-03-03 12:32:23 by SunTzu

Additions:
<fRadius>: The radius within which any ship allowed by the <sTarget> setting is granted the specified ability.
Scope
Related Pages:
AddSubSystemAbility(NewSubSystemType, "Cloak", 1, "ThisShipOnly", 0)
<rSubSystem>: Reference to the subsystem. This should be NewSubSystemType.
<sAbility>: Specifies the ability that is granted. "Cloak" and "Hyperspace" are the only abilities used in the stock HW2 subsystems. Perhaps other abilities are available; 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.




Oldest known version of this page was edited on 2006-03-03 10:30:43 by SunTzu []
Page view:
AddSubSystemAbility(, , , )

Description:
This function is called within a .subs file. It grants the ability specified with <sAbility> to the ships defined with <sTarget>.

Example:
AddSubSystemAbility(NewSubSystemType, "Cloak", 1, "ThisShipOnly", 0)

Arguments:
<rSubSystem>: Reference to the subsystem. This should be NewSubSystemType.
<sAbility>: Specifies the ability that is granted. "Cloak" and "Hyperspace" are the only abilities used in the stock HW2 subsystems. Perhaps other abilities are available; 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.
:: ::