OnDestructionStageChange

From GECK

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. In other words, if an object includes Destructible Object Stages but has no destruction data in its model, then it will not fire this block when suffering damage, even though the information in the Destructible Object Stages is still followed. Further testing will be done.

See Also

Personal tools