AddDestructionStage
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Adds a new destruction stage to the specified Object, at the specified index, and with the specified Health Percentage and Model Damage Stage.
Syntax
(stageCount:int) AddDestructionStage object:ref index:int healthPercent:int damageStage:int
Example
AddDestructionStage TrapGrenadeBunch 2 80 3
Notes
- This function has two major limitations: 1. It will have no effect on existing references of the object - only on references created after it is called, and 2. The changes will not be saved with the game.
- If the stage was successfully added, the function will return the new stage-count, and -1 otherwise.
- Obviously, this function is only usable with object types that have Destruction Data.