Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
StartShipWeaponConfig(<rShip>, <sWeapon>, <sHardpoint>, <sAnimation>)
StartSubSystemWeaponConfig(<rSubSystem>, <sWeapon>, <sHardpoint>, <sAnimation>)

Description
StartShipWeaponConfig is called within a .ship file, while StartSubSystemWeaponConfig is called within a .subs file. These functions give a ship or subsystem a weapon, and are called once per weapon mounted on the ship, although turrets with two barrels must only call this function once despite the turret effectively having two weapons. A ship or subsystem may have more than one weapon fire from the same hardpoint and use the same or different animation. However, a ship or subsystem should not have more than one weapon mounted in the same turret, as each weapon will attempt to control the rotation and elevation of the turret separately, often preventing all weapons from firing in that turret. Only weapons of the type Gimble or Fixed can safely fire from the same hardpoint (see the StartWeaponConfig function).

Example
StartShipWeaponConfig(NewShipType, "Hgn_KineticAutoGun", "Weapon_FrontGun", "Fire")
StartSubSystemWeaponConfig(NewSubSystemType, "Hgn_BattleCruiserTurretedIonCannon", "Weapon_IonCan1", "Weapon_IonCan1")

Arguments
  1. <rShip> and <rSubSystem>: Reference to the ship or subsystem. Generally, this will be NewShipType or NewSubSystemType, respectively.
  2. <sWeapon>: The weapon to be mounted in the indicated sHardpoint. The value corresponds to the base name of the .wepn file.
  3. <sHardpoint>: The node on the model from where the weapon will fire, as coded in the ship's .hod file.
  4. <sAnimation>: The name given to one of the animations defined in the ship's .events file. The animation provides the muzzle flash, sound of firing, and other special effects related to firing.

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
FunctionstartParamAnim.html
100%
--:--
505 KB
-.--
FunctionstartParamAnim.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionstartParamAnim.html
Status:
505 KB / 505 KB ( -.-- )
File Size:
505 KB
Virus scan:
Time Start:
2019.08.21 - 12:37:42
Time to Complete:
00:02
Time Left:
--:--
Percent Done:
100%
Average Speed:
224 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
FunctionStartNebulaConfig.html
100%
00:00
504 KB
991 KB/s
FunctionStartNebulaConfig.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionStartNebulaConfig.html
Status:
504 KB / 504 KB ( 991 KB/s )
File Size:
504 KB
Virus scan:
Time Start:
2019.08.21 - 12:37:52
Time to Complete:
00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
967 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
FunctionStartMissileConfig.html
100%
00:00
505 KB
2.26 MB/s
FunctionStartMissileConfig.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionStartMissileConfig.html
Status:
505 KB / 505 KB ( 2.26 MB/s )
File Size:
505 KB
Virus scan:
Time Start:
2019.08.21 - 12:38:03
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.12 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
FunctionstartEffect.html
100%
00:00
505 KB
2.11 MB/s
FunctionstartEffect.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionstartEffect.html
Status:
505 KB / 505 KB ( 2.11 MB/s )
File Size:
505 KB
Virus scan:
Time Start:
2019.08.21 - 12:38:15
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
1.99 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
FunctionStartDustCloudConfig.html
100%
00:00
504 KB
1.14 MB/s
FunctionStartDustCloudConfig.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionStartDustCloudConfig.html
Status:
504 KB / 504 KB ( 1.14 MB/s )
File Size:
504 KB
Virus scan:
Time Start:
2019.08.21 - 12:38:33
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
1.11 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
FunctionStartCloudConfig.html
100%
00:00
504 KB
2.08 MB/s
FunctionStartCloudConfig.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionStartCloudConfig.html
Status:
504 KB / 504 KB ( 2.08 MB/s )
File Size:
504 KB
Virus scan:
Time Start:
2019.08.21 - 12:38:43
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
1.98 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
FunctionStartAsteroidConfig.html
100%
00:00
555 KB
1.31 MB/s
FunctionStartAsteroidConfig.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\FunctionStartAsteroidConfig.html
Status:
555 KB / 555 KB ( 1.31 MB/s )
File Size:
555 KB
Virus scan:
Time Start:
2019.08.21 - 12:39:15
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
1.27 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