SetMediaSetTraitSound

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Sets the value of a Sound-type trait of a Media Set (determined by traitID).

Syntax

[help]
SetMediaSetTraitSound MediaSet:ref traitID:int{0-1} newForm:ref

Numeric Media Set Trait IDs

0	Intro / Daytime(HNAM)
1	Outro / Nighttime(INAM)

Same Media Set traits can hold up to three different values depending on the Media Set type. For better understanding of how they work, take a look at Media Set records in FNVEdit.

Example

if (GetMediaSetTraitNumeric musSetIncDesert 0 == 3) // if Media Set type is Incidental
      SetMediaSetTraitSound musSetIncDesert 0 musINCdesertday // set new Daytime sound form
endif

See Also