GetCurrentDestructionStage - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Obtains the current destruction stage of the object.

Syntax

int Function GetCurrentDestructionStage() native

Parameters

None.

Return Value

The object's current destruction stage.

Examples

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

Notes

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

See Also