SetCriticalStage - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

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

Syntax[edit | edit source]

Function SetCriticalStage(int aiStage) native

Parameters[edit | edit source]

  • 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 (0) - No critical stage
    • CritStage_GooStart (1) - Start of the goo effect
    • CritStage_GooEnd (2) - End of the goo effect (removes object from the world)
    • CritStage_DisintegrateStart (3) - Start of the disintegrate effect
    • CritStage_DisintegrateEnd (4) - End of the disintegrate effect (removes object from the world)

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Tell skeleton to start disintigrating
Skeleton.SetCriticalStage(Skeleton.CritStage_DisintegrateStart)

See Also[edit | edit source]