OnDestructionStageChange
From GECK
Contents
Syntax
begin OnDestructionStageChange
Example
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 (such as BSBlastNode, BSDamageStage, BSDebrisNode, or BSValueNode), 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.