Mod:Creation Kit/SetCriticalStage - Actor

Member of: Mod:Creation Kit/Actor Script

Sets this actor's current critical stage, along with applying any related effects.

Syntax
Function SetCriticalStage(int aiStage) native

Parameters

 * aiStage: The critical stage to set it to. The following values are acceptable (properties are read-only and exist in the actor script):
 * CritStage_None - No critical stage
 * CritStage_GooStart - Start of the goo effect
 * CritStage_GooEnd - End of the goo effect (removes object from the world)
 * CritStage_DisintegrateStart - Start of the disintegrate effect
 * CritStage_DisintegrateEnd - End of the disintegrate effect (removes object from the world)
 * CritStage_FreezeStart - Start of the freeze effect
 * CritStage_FreezeEnd - End of the freeze effect

Return Value
None.

Examples
Skeleton.SetCriticalStage(Skeleton.CritStage_DisintegrateStart)
 * Tell skeleton to start disintigrating