Difference between revisions of "DamageObject"
Jump to navigation
Jump to search
no edit summary
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
imported>Ez0n3 |
||
|
{{Function
|origin = GECK1
|name = DamageObject
|alias = DO
|returnType = void
|referenceType = [ObjectRefID]
|arguments =
{{FunctionArgument
|Name = Value
|Type = float
}}
|example = CarRef.DamageObject 25.4▼
carRef.do 25.4▼
▲'''DamageObject''' 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.
▲ CarRef.DamageObject 25.4
The car will take 25.4 points of damage.
}}
▲ carRef.do 25.4
*[[ClearDestruction]]▼
▲=='''See Also'''==
▲[[ClearDestruction]]
[[Category:Functions]]
| |||