Background for Skyrim SE
Member of the ObjectReference script
voidfunctionDamageObject(floatafDamage)Native

Description

Wiki Description

Damages this object, which may fire off OnDestructionStageChanged events.

Documentation Comment

Damages this object and advances the destruction stage - does not return until the object is damaged


Caveats

CK Wiki - Notes

DamageObject() does not seem work on unloaded objects. A possible workaround is placing it under OnCellAttach_-_ObjectReference.


Parameters

floatafDamage

CK Wiki Description

How much damage to do to the object.


Examples

; Damages megaton
MegatonReference.DamageObject(200.0)

Auto-Generated Example

float myFloat__afDamage

myObjectReference__toCallFunctionOn.DamageObject(myFloat__afDamage)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.