DamageObject - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Damages this object, which may fire off OnDestructionStageChanged events.

Syntax

Function DamageObject(float afDamage) native

Parameters

  • afDamage: How much damage to do to the object.

Return Value

None.

Examples

; Damages megaton
MegatonReference.DamageObject(200.0)

Notes

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

See Also