GetGrassTraitNumeric

From the Fallout3 GECK Wiki
Revision as of 20:44, 23 September 2015 by imported>Jazzisparis (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

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

[help]
(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