GetNthDestructionStageTrait

From the Fallout3 GECK Wiki
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 Nth destruction stage in the Destruction Data of the specified Object.

Syntax

[help]
(traitValue:int) GetNthDestructionStageTrait object:ref stageIndex:int traitID:int{0-4}

Destruction Stage Trait IDs

0	Health Percentage
1	Self Damage per Second
2	Model Damage Stage
3	Flags Bitmask (see below)
4	Debris Count

Flags:

1	Cap Damage
2	Disable Object
4	Destroy Object

Example

set iDamageSec to GetNthDestructionStageTrait ElectricBox01 0 1

Will return the Self Damage per Second of the first (index 0) destruction stage of ElectricBox01.

Notes

  • Obviously, this function is only usable with object types that have Destruction Data.

See Also