SetSoundTraitNumeric

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the value of a Sound's numeric trait (determined by traitID).

Syntax

[help]
(traitValue:float) SetSoundTraitNumeric sound:ref traitID:int{0-12} newValue:float

Sound Numeric Trait IDs

0	Min. Attenuation Distance
1	Max. Attenuation Distance
2	Frequency Adjustment
3	Static Attenuation
4	Ends At (Minutes)
5	Starts At (Minutes)
6	Attenuation Curve 1
7	Attenuation Curve 2
8	Attenuation Curve 3
9	Attenuation Curve 4
10	Attenuation Curve 5
11	Reverb Attenuation Control
12	Priority

Example

SetSoundTraitNumeric EMTMedicalBeep01 3 -4.85

Will set the Static Attenuation of EMTMedicalBeep01 to -4.85.

Note

  • Changing a trait will have no effect on sounds currently playing when this command is called, only sounds that begin to play after this command was called with inherit the changes.
  • If changing a sound in a persistent REF used in a script, it must be disabled and re-enabled for the changes to take effect

See Also