Difference between revisions of "SetWeaponSound"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Jazzisparis
imported>Jazzisparis
 
Line 29: Line 29:
   |Name = newSound
   |Name = newSound
   |Type = ref
   |Type = ref
  |Optional = y
   }}
   }}
  |example = SetWeaponSound WeapNVAssaultCarbine 2 WPN10mmSMGFire2D
  |example = SetWeaponSound WeapNVAssaultCarbine 2 WPN10mmSMGFire2D
Will set the Assault Carbine's 2D attack sound to <i>WPN10mmSMGFire2D</i>.
Will set the <i>Attack Sound 2D</i> of <i>WeapNVAssaultCarbine</i> to <i>WPN10mmSMGFire2D</i>.
 
SetWeaponSound WeapNVAssaultCarbine 7
Will set the <i>Equip Sound</i> of <i>WeapNVAssaultCarbine</i> to <i>None</i>.
}}
}}
==See Also==
==See Also==

Latest revision as of 19:13, 30 April 2015

< [[::Category:Functions|Category:Functions]]

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