Background for Fallout 4
Member of the ObjectReference script
intfunctionGetCurrentDestructionStage()Native

Description

Wiki Description

Obtains the current destruction stage of the object.

Documentation Comment

Returns the object's current destruction stage


Caveats

CK Wiki - Notes

If the object hasn't been damaged, stage 1 is reported as -1. So do <= 1 for checking if it's the first stage.


Examples

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

Auto-Generated Example

int returnedValue = myObjectReference__toCallFunctionOn.GetCurrentDestructionStage()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.