RemoveDestructionStage

From the Fallout3 GECK Wiki
Revision as of 06:06, 14 June 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Removes the destruction stage, at the specified <i>index</i>, from the specified <i>Object</i>. |name = Re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::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

[help]
(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