GetImpactDataTrait

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns a trait value (determined by traitID) of the specified Impact Data.

Syntax

[help]
(traitValue:float/ref) GetImpactDataTrait impactData:ref traitID:int{0-17}

Impact Data Trait IDs

0	Duration
1	Orientation (0 - Surface Normal, 1 - Proj. Vector, 2 - Proj. Reflection)
2	Angle Threshold
3	Placement Radius
4	Sound Level (0 - Loud, 1 - Normal, 2 - Silent)
5	Texture Set
6	Sound 1
7	Sound 2
8	Min. Width
9	Max. Width
10	Min. Height
11	Max. Height
12	Depth
13	Shininess
14	Scale
15	Passes
16	Flag Bitmask (see below)
17	Color (RRRGGGBBB)

Impact Data Flags:

1	No Decal Data
2	Has Parallax
4	Alpha - Blending
8	Alpha - Testing

Example

set fValue to GetImpactDataTrait DeathClawsFleshImpact 13

Will return the Shininess of DeathClawsFleshImpact.

set rValue to GetImpactDataTrait DeathClawsFleshImpact 5

Will return the Texture Set of DeathClawsFleshImpact.

See Also