OnDestructionStageChanged - ObjectReference
Revision as of 01:59, 17 February 2012 by imported>Cipscis (Beautifying link)
Member of: ObjectReference Script
Event called when the object's destruction stage worsens.
SyntaxEdit
Event OnDestructionStageChanged(int aiOldStage, int aiCurrentStage)
ParametersEdit
- aiOldStage - The object's destruction stage before this event fired. Attached here because massive damage could cause an object to skip several destruction stages at once.
- aiCurrentStage - The object's current destruction stage.
ExamplesEdit
Event OnDestructionStageChanged(int aiOldStage, int aiCurrentStage)
Debug.Trace("Out destruction stage changed from " + aiOldStage + " to " + aiCurrentStage)
EndEvent