OnDestructionStageChange

From the Fallout3 GECK Wiki
Revision as of 05:29, 4 February 2010 by imported>JT
Jump to navigation Jump to search

Syntax:

 begin OnDestructionStageChange

Example:

 begin OnDestructionStageChange

This first block will be run once whenever the scripted object changes its current Damage Stage.

 begin OnDestructionStageChange  
if GetDestructionStage == 1
 ; do whatever for stage 1
elseif GetDestructionStage == 2
 ; etc.
endif
end

This block is triggered whenever the destruction stage changes and will execute different commands for each stage.

Notes

  • This block only appears to trigger if the object's NIF model includes embedded destruction stage data, regardless of whether the object includes any GECK-defined Destructible Object Stages. Further testing will be done.

See Also