GetCurrentDestructionStage - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Obtains the current destruction stage of the object.

Syntax[edit | edit source]

int Function GetCurrentDestructionStage() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The object's current destruction stage.

Examples[edit | edit source]

; Has megaton hit stage 2 destruction yet?
if (MegatonReference.GetCurrentDestructionStage() >= 2)
  Debug.Trace("Wow, you've really beat that town up!")
endIf

Notes[edit | edit source]

A completely undamaged object appears to have a destruction stage of -1.

See Also[edit | edit source]