Difference between revisions of "SetMaterialPropertyValue"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Jazzisparis
(Created page with "{{Function |origin = JIP |summary = Sets the value of the specified property (determined by <i>valueID</i>) in the '''NiMaterialProperty''' of the specified '''Nif Block'''...")
 
imported>Jazzisparis
 
Line 33: Line 33:
*[[GetMaterialPropertyValue]]
*[[GetMaterialPropertyValue]]
[[Category:Functions (JIP)]]
[[Category:Functions (JIP)]]
[[Category:Miscellaneous Functions (JIP)]]
[[Category:Misc Reference Functions (JIP)]]

Latest revision as of 02:11, 29 March 2017

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

A function added by the JIP NVSE Plugin.

Description

Sets the value of the specified property (determined by valueID) in the NiMaterialProperty of the specified Nif Block of the calling object reference.

Syntax

[help]
(propValue:float) reference.SetMaterialPropertyValue nifBlockName:string valueID:int{0-8} newValue:float

Material Property Value IDs

0	Specular Color - Red
1	Specular Color - Green
2	Specular Color - Blue
3	Emissive Color - Red
4	Emissive Color - Green
5	Emissive Color - Blue
6	Glossiness
7	Alpha
8	Emit Mult.

Example

NAFBTunnelDoorRef.SetMaterialPropertyValue "TrackPanelRight01:13" 7 0.6

This will set the Alpha value of the NiMaterialProperty, of the "TrackPanelRight01:13" block, in the Nif used by NAFBTunnelDoorRef, to 0.6.

See Also