DamageObject - ObjectReference

Member of: ObjectReference Script

Damages this object, which may fire off OnDestructionStageChanged events.

SyntaxEdit

Function DamageObject(float afDamage) native

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

; Damages megaton
MegatonReference.DamageObject(200.0)

NotesEdit

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

See AlsoEdit