DamageObject - ObjectReference

From the CreationKit Wiki
Revision as of 05:26, 1 January 2017 by imported>Oliver1706
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Damages this object, which may fire off OnDestructionStageChanged events.

Syntax[edit | edit source]

Function DamageObject(float afDamage) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Damages megaton
MegatonReference.DamageObject(200.0)

Notes[edit | edit source]

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

See Also[edit | edit source]