GetCurrentDestructionStage - ObjectReference
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]
If the object hasn't been damaged, stage 1 is reported as -1. So do <= 1 for checking if it's the first stage.