RemoveDestructionStage

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

A function added by the JIP NVSE Plugin.

Description

Removes the destruction stage, at the specified index, from the specified Object.

Syntax

(stageCount:int) RemoveDestructionStage object:ref index:int

Example

RemoveDestructionStage TrapGrenadeBunch 2

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 removed, the function will return the new stage-count, and -1 otherwise.
  • Obviously, this function is only usable with object types that have Destruction Data.

See Also