Difference between revisions of "DamageObject - ObjectReference"
Jump to navigation
Jump to search
imported>Scornett m (Reverted edits by Scornett-Bot (talk) to last revision by Rhavlovick) |
imported>Oliver1706 |
||
Line 22: | Line 22: | ||
MegatonReference.DamageObject(200.0) | MegatonReference.DamageObject(200.0) | ||
</source> | </source> | ||
== Notes == | |||
DamageObject() does not seem work on unloaded objects. A possible workaround is placing it under [[OnCellAttach_-_ObjectReference]]. | |||
== See Also == | == See Also == |
Latest revision as of 05:26, 1 January 2017
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.