Difference between revisions of "GetGrassTraitNumeric"

From GECK

(Created page with "{{Function |origin = JIP |summary = Returns the value of a numeric trait (determined by <i>traitID</i>) of the specified <i>Grass</i> form. |name = GetGrassTraitNumeric |r...")
 
 
Line 44: Line 44:
 
==See Also==
 
==See Also==
 
*[[SetGrassTraitNumeric]]
 
*[[SetGrassTraitNumeric]]
[[Category:Functions_(JIP)]]
+
[[Category:Functions (JIP)]]
[[Category:Miscellaneous Functions (JIP)]]
+
[[Category:Grass Functions (JIP)]]

Latest revision as of 02:27, 29 March 2017

A function added by the JIP NVSE Plugin.

Description

Returns the value of a numeric trait (determined by traitID) of the specified Grass form.

Syntax

(traitValue:float) GetGrassTraitNumeric grass:ref traitID:int{0-9}

Grass Numeric Trait IDs

0	Density
1	Min. Slope
2	Max. Slope
3	Units from Water Amount
4	Units from Water Type (see below)
5	Position Range
6	Height Range
7	Color Range
8	Wave Period
9	Flags Bitmask (see below)

Units from Water Types:

0	Above - At Least
1	Above - At Most
2	Below - At Least
3	Below - At Most
4	Either - At Least
5	Either - At Most
6	Either - At Most Above
7	Either - At Most Below

Flags:

1	Vertex Lighting
2	Uniform Scaling
4	Fit to Slope

Example

set fPosRange to GetGrassTraitNumeric GrassWasteland01 5

Will return the Position Range of GrassWasteland01.

See Also

Personal tools