GetNthDestructionStageTrait

Revision as of 19:01, 3 May 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns the value of a numeric trait (determined by <i>traitID</i>) of the Nth destruction stage in the <i>Destruction Data</i> of the sp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::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

(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