Difference between revisions of "OnDestructionStageChange"
Jump to navigation
Jump to search
imported>JT |
imported>JT m (→Notes) |
||
Line 17: | Line 17: | ||
==Notes== | ==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 Stage]]s. Further testing will be done. | * 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 Stage]]s. 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== | ==See Also== |
Latest revision as of 05:31, 4 February 2010
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[edit | edit source]
- 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.