AddDestructionStage
Revision as of 06:05, 14 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Adds a new destruction stage to the specified <i>Object</i>, at the specified <i>index</i>, and with the sp...")
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
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.