Background for Skyrim SE
Member of the ObjectReference script
eventOnDestructionStageChanged(intaiOldStage, intaiCurrentStage)

Description

Wiki Description

Event called when the object's destruction stage worsens.

Documentation Comment

Event received when this reference's destruction stage has changed


Parameters

intaiOldStage

intaiCurrentStage


Examples

Event OnDestructionStageChanged(int aiOldStage, int aiCurrentStage)
  Debug.Trace("Out destruction stage changed from " + aiOldStage + " to " + aiCurrentStage)
EndEvent

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnDestructionStageChanged(int aiOldStage, int aiCurrentStage)
    Debug.trace("Event received - OnDestructionStageChanged: aiOldStage = " + aiOldStage + " aiCurrentStage = " + aiCurrentStage)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.