GetBodyPartTraitNumeric

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the numeric value of the specified trait (determined by traitID), of the specified body-part type (determined by partID) of the passed Body-Part data.

Syntax

[help]
(traitValue:float) GetBodyPartTraitNumeric bodyPartData:ref partID:int{0-14} traitID:int{0-18}

Body-Part Type IDs

0	Torso
1	Head 1
2	Head 2
3	Left Arm 1
4	Left Arm 2
5	Right Arm 1
6	Right Arm 2
7	Left Leg 1
8	Left Leg 2
9	Left Leg 3
10	Right Leg 1
11	Right Leg 2
12	Right Leg 3
13	Brain
14	Weapon

Body-Part Numeric Trait IDs

0	Actor Value Code
1	Damage Mult.
2	Health Percent
3	To Hit Chance
4	Tracking Max. Angle
5	Severable - Debris Count
6	Severable - Debris Scale
7	Severable - Decal Count
8	Explosion Chance
9	Limb Replacement Scale
10	Explodable - Debris Count
11	Explodable - Debris Scale
12	Explodable - Decal Count
13	Local Translate: X
14	Local Translate: Y
15	Local Translate: Z
16	Local Rotate: X
17	Local Rotate: Y
18	Local Rotate: Z

Example

set fVal to GetBodyPartTraitNumeric NVGecko 0 2

Will return the Health Percent of the Torso body-part of NVGecko.

See Also