SetBodyPartTraitForm

< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

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

Syntax

(traitValue:ref) SetBodyPartTraitForm bodyPartData:ref partID:int{0-14} traitID:int{0-5} newValue:ref

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 Form Trait IDs

0	Severable - Explosion Type
1	Explodable - Explosion Type
2	Severable - Generic Debris
3	Explodable - Generic Debris
4	Severable - Blood Spurt / Decal Impact Data
5	Explodable - Blood Spurt / Decal Impact Data

Example

SetBodyPartTraitForm NVGecko 0 1 LimbExplosion

Will set the Explosion Type (Explodable) of the Torso body-part of NVGecko to LimbExplosion.

SetBodyPartTraitForm NVGecko 5 2

Will set the Generic Debris (Severable) of the Right Arm 1 body-part of NVGecko to None.

See Also