Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
AddSubSystemAbility(<rSubSystem>, <sAbility>, <?>, <sTarget>, <fRadius>)

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", "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.

Scope

Related Pages:
:: ::
Hide Download Bar
Ctrl + Shift + Z = Show/Hide Download Bar
Downloads
Download Manager (S3)
Clear
Left Click: Clear All Finished
Right Click: Undo last clear
100%
Download History
Download list is empty
FunctionAddShipAbility.html
100%
--:--
498 KB
-.--
FunctionAddShipAbility.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionAddShipAbility.html
Status:
498 KB / 498 KB ( -.-- )
File Size:
498 KB
Virus scan:
Time Start:
2019.08.20 - 18:27:44
Time to Complete:
00:01
Time Left:
--:--
Percent Done:
100%
Average Speed:
477 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionAddShipMultiplier.html
100%
--:--
509 KB
-.--
FunctionAddShipMultiplier.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionAddShipMultiplier.html
Status:
509 KB / 509 KB ( -.-- )
File Size:
509 KB
Virus scan:
Time Start:
2019.08.20 - 18:28:45
Time to Complete:
00:01
Time Left:
--:--
Percent Done:
100%
Average Speed:
521 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop
FunctionaddSquadron.html
100%
00:00
514 KB
2.59 MB/s
FunctionaddSquadron.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionaddSquadron.html
Status:
514 KB / 514 KB ( 2.59 MB/s )
File Size:
514 KB
Virus scan:
Time Start:
2019.08.20 - 18:29:36
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.59 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop