Difference between revisions of "DamageObject"
no edit summary
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0))) |
imported>Ez0n3 |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
== | {{Function | ||
|origin = GECK1 | |||
|summary = Applies damage to a destructible object which is not already destroyed. Does not work for objects which have health (such as weapons). It is called on a reference and takes a float which is the amount of damage to apply. | |||
|name = DamageObject | |||
|alias = DO | |||
|returnType = void | |||
|referenceType = [ObjectRefID] | |||
|arguments = | |||
{{FunctionArgument | |||
|Name = Value | |||
|Type = float | |||
}} | |||
|example = CarRef.DamageObject 25.4 | |||
carRef.do 25.4 | |||
The car will take 25.4 points of damage. | The car will take 25.4 points of damage. | ||
}} | |||
==See Also== | |||
*[[ClearDestruction]] | |||
== | |||
[[ClearDestruction]] | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1. | [[Category:Functions (GECK 1.1)]] | ||
[[Category:Object Functions]] | [[Category:Object Functions]] | ||
[[Category:Object Functions (GECK 1. | [[Category:Object Functions (GECK 1.1)]] |