SetImpactDataTraitNumeric

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

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

Syntax

[help]
(traitValue:float) SetImpactDataTraitNumeric impactData:ref traitID:int{0-14} newValue:float

Impact Data Numeric 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	Min. Width
6	Max. Width
7	Min. Height
8	Max. Height
9	Depth
10	Shininess
11	Scale
12	Passes
13	Flag Bitmask (see below)
14	Color (RRRGGGBBB)

Impact Data Flags:

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

Example

SetImpactDataTraitNumeric DeathClawsFleshImpact 10 3

Will set the Shininess of DeathClawsFleshImpact to 3.

See Also