SetWeaponSound

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets a weapon's sound, determined by soundID:

0	Attack Sound 3D
1	Attack Sound Dist.
2	Attack Sound 2D
3	Attack Loop
4	Attack Fail
5	Melee Block
6	Idle Sound
7	Equip Sound
8	Unequip Sound
9	Attack Sound 3D (Mod)
10	Attack Sound Dist. (Mod)
11	Attack Sound 2D (Mod)
12	Pickup Sound
13	Putdown Sound

Syntax

[help]
(sound:ref) SetWeaponSound weapon:ref soundID:int{0-13} newSound:ref

Example

SetWeaponSound WeapNVAssaultCarbine 2 WPN10mmSMGFire2D

Will set the Attack Sound 2D of WeapNVAssaultCarbine to WPN10mmSMGFire2D.

SetWeaponSound WeapNVAssaultCarbine 7

Will set the Equip Sound of WeapNVAssaultCarbine to None.

See Also