DamageObject

Revision as of 12:29, 12 August 2009 by imported>Geckbot (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))

Description

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.

Syntax

[ObjectREF.]DamageObject float 

Examples

CarRef.DamageObject 25.4

The car will take 25.4 points of damage.

carRef.do 25.4

Notes

  • None at this time


See Also

ClearDestruction

Reference

None provided.