GetMediaSetTraitSound

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

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

Syntax

[help]
(traitValue:form) GetMediaSetTraitSound MediaSet:ref traitID:int{0-1}

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
      set rSoundForm to GetMediaSetTraitSound musSetIncDesert 0 // set reference to Daytime sound form
endif

See Also